Opened 11 years ago

Closed 11 years ago

#8226 closed defect (fixed)

FilePicker - fix for 'node is null' error

Reported by: youngstuart Owned by: Nathan Toone
Priority: high Milestone: 1.3
Component: DojoX Widgets Version: 1.2.1
Keywords: Cc:
Blocked By: Blocking:

Description

I'm not sure if this has been attended to already but I couldn't find it on this site so I thought I would post this as a FYI.

Problem:

I encountered a 'node is null' error with FilePicker?.js. Here's how I produce the error:

  1. Click on a file (non-directory) node, which displays the file details in the next pane
  2. Click on a directory (non-file) node, which should display the rolling list of files in the next pane, but instead gives this console error in Firefox: 'node is null' in dojo/html.js at line 29 (in the function dojo.html._emptyNode).

Solution:

I traced it back to the _removeAfter function of RollingList? which FilePicker? inherits from. The error can be fixed by replacing line 481 in dojox.widget.RollingList?:

c.destroyRecursive();

c.destroy();

Cheers,

youngstuart

Change History (3)

comment:1 Changed 11 years ago by Adam Peller

Component: GeneralDojoX Widgets
Owner: changed from anonymous to Nathan Toone

comment:2 Changed 11 years ago by Nathan Toone

Milestone: tbd1.3
Priority: normalhigh

comment:3 Changed 11 years ago by Nathan Toone

Resolution: fixed
Status: newclosed

This has been fixed for 1.3

Note: See TracTickets for help on using tickets.