Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341833 - ObjectReferenceMapping.buildReferencePKList error when target == null
Summary: ObjectReferenceMapping.buildReferencePKList error when target == null
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: Gordon Yorke CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-04 15:54 EDT by Gordon Yorke CLA
Modified: 2022-06-09 10:09 EDT (History)
2 users (show)

See Also:


Attachments
Patch (1.42 KB, patch)
2011-04-04 15:58 EDT, Gordon Yorke CLA
no flags Details | Diff
Additional Patch (586 bytes, patch)
2011-04-20 16:13 EDT, Gordon Yorke CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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