Community
Participate
Working Groups
Build Identifier: I20110519-1138 1. Create a mapping file and add a type mapping to it 2. In the JPA structure pane, add an attribute to the mapping file 3. Right-click the attribute and select Map As -> Element Collection A NPE is thrown saying java.lang.NullPointerException at org.eclipse.jpt.jpa.core.internal.jpa2.context.orm.AbstractOrmElementCollectionMapping2_0$AbstractOwner.resolveDbTable(AbstractOrmElementCollectionMapping2_0.java:1313) A full stack trace is attached. Reproducible: Always
Created attachment 196607 [details] Stack Trace
Must be connected to a database to get this exception
Created attachment 197502 [details] proposed patch against head
The attached patch uses Tools.valuesAreEqual which does a null check on the table names
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 Element Collection without error. see the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0.1