Opened 9 years ago

Closed 9 years ago

#11248 closed defect (fixed)

dojox.xml.parser throws sourceText exception

Reported by: Douglas Hays Owned by: Douglas Hays
Priority: high Milestone: 1.5
Component: Dojox Version: 1.4.0
Keywords: Cc: Jared Jurkiewicz, haysmark, alex
Blocked By: Blocking:

Description

dojox.xml.parser contains:

if(!sourceText){
	sourceText = sourceText.firstChild.data;
}

which throws an exception when sourceText is not defined.

Attachments (1)

11248.patch (579 bytes) - added by Douglas Hays 9 years ago.
check for sourceText != null before accessing firstChild

Download all attachments as: .zip

Change History (4)

comment:1 Changed 9 years ago by Douglas Hays

Cc: alex added

This has been in there since the initial checkin by alex

Changed 9 years ago by Douglas Hays

Attachment: 11248.patch added

check for sourceText != null before accessing firstChild

comment:2 Changed 9 years ago by Douglas Hays

Status: newassigned

comment:3 Changed 9 years ago by Douglas Hays

Resolution: fixed
Status: assignedclosed

(In [22271]) Fixes #11248. Added check for sourceText object before accessing attributes.

Note: See TracTickets for help on using tickets.