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

Bug 346897

Summary: NullPointerException: Edit default join column
Product: [WebTools] Dali JPA Tools Reporter: Nan Li <nan.n.li>
Component: JPAAssignee: Nan Li <nan.n.li>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: neil.hauge
Version: unspecified   
Target Milestone: 3.3   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Stack Trace none

Description Nan Li CLA 2011-05-23 13:47:57 EDT
Build Identifier: I20110512-2000

1. Define an element collection mapping 
2. Go to the Collection Table -> Join Columns
3. Select "Override default" checkbox, click Edit button (don't select the default one before hitting Edit button), change the names of the columns, and then hit OK.

A NPE is thrown and the selected values are not written to the source. The full stack trace is attached.

Reproducible: Always
Comment 1 Nan Li CLA 2011-05-23 13:50:11 EDT
Created attachment 196362 [details]
Stack Trace
Comment 2 Nan Li CLA 2011-05-23 14:11:06 EDT
I found that this problem happens when composite primary key is used which makes the default join column shown as Default(null) -> Default(null) so this problem may get fixed with bug 325645; however, I also observed that the Edit and Remove button will get disable after switching focus area and coming back to join column. We may also fix this problem by disable the Edit and Remove button before selecting the default one.
Comment 3 Neil Hauge CLA 2011-07-01 16:23:53 EDT
Moving JPA specific bugs to new JPA component in bugzilla.
Comment 4 Neil Hauge CLA 2013-04-15 15:21:59 EDT
This is no longer reproducible.