Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361968 - DOMReader should pass in "" instead of null for the namespace uri of elements
Summary: DOMReader should pass in "" instead of null for the namespace uri of elements
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-10-25 13:17 EDT by Matt MacIvor CLA
Modified: 2022-06-09 10:03 EDT (History)
0 users

See Also:


Attachments
Proposed Fix (1.04 KB, patch)
2011-10-25 13:38 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-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