Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354504

Summary: DOMReader should pass in "" instead of null for the namespace uri of attributes
Product: z_Archived Reporter: Matt MacIvor <matt.macivor>
Component: EclipselinkAssignee: Matt MacIvor <matt.macivor>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
proposed fix and test case none

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