| Summary: | NullPointerException: Change a mapping to many-to-one or one-to-one mapping | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Nan Li <nan.n.li> | ||||||
| Component: | General | Assignee: | Karen Butzke <karenfbutzke> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | jolene.moffitt, neil.hauge | ||||||
| Version: | unspecified | Flags: | neil.hauge:
review+
|
||||||
| Target Milestone: | 3.0.1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | fix_ready | ||||||||
| Attachments: |
|
||||||||
|
Description
Nan Li
Created attachment 196988 [details]
Stack Trace
Created attachment 197639 [details]
proposed patch against head
This patch filters out mapsId choices with a null mapping name. I approached it this way because it is possible to set a mapping name to null in the orm.xml so we would have to prevent this NPE in that case as well.
checked in to HEAD for 3.0.1 Verified in Build I-3.4.0-20110731180834 Verified you can add an attribute to a mapping file and change it to one-to-one or many-to-one type without error. see the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0.1 |