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

Bug 361968

Summary: DOMReader should pass in "" instead of null for the namespace uri of elements
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 none

Description Matt MacIvor CLA 2011-10-25 13:17:12 EDT
Currently, DOMReader invokes the nested content handler's startElement and endElement using the node.getNamespaceURI method to obtain the uri. In the case that getNamespaceURI returns null, this can cause problems if the nested content handler isn't able to handle null. 

This should be changed to empty string to avoid problems.
Comment 1 Matt MacIvor CLA 2011-10-25 13:38:30 EDT
Created attachment 205942 [details]
Proposed Fix
Comment 2 Matt MacIvor CLA 2011-11-01 13:07:56 EDT
Attached patch checked in to SVN
Reviewed by Blaise Doughan
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:03:47 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink