Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318465 - NullPointerException when using an XMLTransformationMapping
Summary: NullPointerException when using an XMLTransformationMapping
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: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-30 09:23 EDT by Matt MacIvor CLA
Modified: 2022-06-09 10:32 EDT (History)
0 users

See Also:


Attachments
Proposed Fix and Test Case (5.22 KB, patch)
2010-06-30 12:39 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 2010-06-30 09:23:13 EDT
In the case that EclipseLink is unmarshalling an xml document, and that document declares a prefix which goes out of scope prior to initializing the UnmarshalRecord's TransformationRecord, a NPE will occur.

This is because the list of prefixes returned from the UnmarshalNamespaceResolver still contains the out of scope prefix, but getNamespace returns null for that prefix. XMLTransformationRecord doesn't guard against the possibility of a null namespace uri being returned for a prefix and so a NullPointer occurs.
Comment 1 Matt MacIvor CLA 2010-06-30 12:39:23 EDT
Created attachment 173127 [details]
Proposed Fix and Test Case
Comment 2 Matt MacIvor CLA 2010-06-30 16:04:04 EDT
Attached patch checked in to SVN in 2.1 and Trunk branches. 

Will appear in nightly builds starting with 20100701
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:32:09 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink