Community
Participate
Working Groups
Created attachment 171297 [details] NPE stack trace Found this while verifying bug 262859: -Create a new project -Create an entity -close the workspace -edit the entity in a text editor outside of Eclipse -open the workspace -open the edited entity by using the Project Explorer JPA Content tree and double clicking the entity. You will get the attached NPE if you open the entity this way, opening it through the src folder instead will work fine. If you refresh the file the model is not corrupted and you can continue working without problems.
I wonder if a more likely user path for this issue would involve working with an SCM. If so, perhaps it is something we should look at for 3.0.1.
Created attachment 197608 [details] proposed patch against head This patch fixes this NPE as well as similar NPEs when selecting a field or property in the JPA Content tree. Also fixes Enums and enum constants in JAXB.
checked in to HEAD for 3.0.1
Verified in Build I-3.4.0-20110731180834 Verified you can open project (workspace) without NPE after you make changes outside of eclipse with the project closed. See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0.1