[
https://jira.jboss.org/jira/browse/JBIDE-4361?page=com.atlassian.jira.plu...
]
Vitali Yemialyanchyk resolved JBIDE-4361.
-----------------------------------------
Resolution: Done
Assignee: Aliaksey Nis (was: Vitali Yemialyanchyk)
refactoring done.
Orm Diagram breaks when there are no project associated with a
console configuration
------------------------------------------------------------------------------------
Key: JBIDE-4361
URL:
https://jira.jboss.org/jira/browse/JBIDE-4361
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Hibernate
Reporter: Max Rydahl Andersen
Assignee: Aliaksey Nis
Fix For: 3.1.0.M1
EXECUTE: Create a console configuration that does not point to a project
EXECUTE: Right click an entity in Console View and choose show mapping diagram
ASSERT: No Exceptions and diagram shown
Now you get:
java.lang.NullPointerException
at
org.jboss.tools.hibernate.ui.veditor.editors.model.OrmDiagram.getStoreFolderPath(OrmDiagram.java:107)
at
org.jboss.tools.hibernate.ui.veditor.editors.model.OrmDiagram.getStoreFilePath(OrmDiagram.java:111)
at
org.jboss.tools.hibernate.ui.veditor.editors.model.OrmDiagram.load(OrmDiagram.java:717)
at
org.jboss.tools.hibernate.ui.veditor.editors.model.OrmDiagram.<init>(OrmDiagram.java:102)
at
org.jboss.tools.hibernate.ui.veditor.editors.VisualEditor.setInput(VisualEditor.java:158)
at org.eclipse.gef.ui.parts.GraphicalEditor.init(GraphicalEditor.java:318)
Because the diagram assumes there is a project associated with the launch configuration.
This is a wrong assumption
plus it potentially mixes up settings for multiple console configurations. If something
needs to be saved it should be done
in context of the launchconfiguration location/name.
i.e. a workspace preference keyed by launch config name or by saving settings where the
launch configuration is stored.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira