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

Bug 341833

Summary: ObjectReferenceMapping.buildReferencePKList error when target == null
Product: z_Archived Reporter: Gordon Yorke <gordon.yorke>
Component: EclipselinkAssignee: Gordon Yorke <gordon.yorke>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: desmond.ng, eclipselink.foundation-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=337319
Whiteboard:
Attachments:
Description Flags
Patch
none
Additional Patch none

Description Gordon Yorke CLA 2011-04-04 15:54:03 EDT
ObjectReferenceMapping buildReferencePKList builds incorrect array when reference is null.

Solution is to only build an Object[1] when the target != null
Comment 1 Gordon Yorke CLA 2011-04-04 15:58:10 EDT
Created attachment 192498 [details]
Patch
Comment 2 Gordon Yorke CLA 2011-04-04 16:00:56 EDT
This patch should be combined with the patch for bug 337319
Comment 3 Gordon Yorke CLA 2011-04-20 16:13:47 EDT
Created attachment 193753 [details]
Additional Patch

This is an additional change that must be used with the other patch to fully fix this issue.
Comment 4 Gordon Yorke CLA 2011-06-15 10:57:28 EDT
This was checked in. revision 9249.
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:09:52 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink