Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354504 - DOMReader should pass in "" instead of null for the namespace uri of attributes
Summary: DOMReader should pass in "" instead of null for the namespace uri of attributes
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Matt MacIvor CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-11 10:32 EDT by Matt MacIvor CLA
Modified: 2022-06-09 10:02 EDT (History)
0 users

See Also:


Attachments
proposed fix and test case (3.45 KB, patch)
2011-08-11 11:18 EDT, Matt MacIvor CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt MacIvor CLA 2011-08-11 10:32:40 EDT
DOMReader contains an inner class called IndexedAttributeList which implements the org.xml.sax.Attributes interface. This implementation shouldn't allow a null to be returned from getNamespaceURI(index). Some content handlers will throw a null pointer if that uri is null.
Comment 1 Matt MacIvor CLA 2011-08-11 11:18:31 EDT
Created attachment 201323 [details]
proposed fix and test case
Comment 2 Matt MacIvor CLA 2011-08-18 14:15:14 EDT
Attached patch has been submitted to SVN
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:02:30 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink