Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346897 - NullPointerException: Edit default join column
Summary: NullPointerException: Edit default join column
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.3   Edit
Assignee: Nan Li CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-23 13:47 EDT by Nan Li CLA
Modified: 2013-04-15 15:21 EDT (History)
1 user (show)

See Also:


Attachments
Stack Trace (2.81 KB, text/plain)
2011-05-23 13:50 EDT, Nan Li CLA
no flags Details

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