[
https://jira.jboss.org/browse/TEIIDDES-635?page=com.atlassian.jira.plugin...
]
Barry LaFond resolved TEIIDDES-635.
-----------------------------------
Resolution: Done
added additional check for eIsProxy() before firing openDiagram(null)
NPE Deleting Model Project with Diagrams for models within that
project open
----------------------------------------------------------------------------
Key: TEIIDDES-635
URL:
https://jira.jboss.org/browse/TEIIDDES-635
Project: Teiid Designer
Issue Type: Bug
Components: Diagrams
Affects Versions: 7.1.1
Reporter: Barry LaFond
Assignee: Barry LaFond
Priority: Critical
Fix For: 7.1.1
Attachments: org.teiid.designer.diagram.ui.patch
Actually got this with
"jbosstools-3.2.0.Beta1.aggregate-Update-2010-09-27_05-18-00-H173.zip" kit
today.
Couldn't get the NPE in Designer IDE, but there is a bug nonetheless.
DiagramEditor needs in notifyChanged() needs to check if the current diagram eIsProxy()
which indicates the EObject is out of scope/unloaded and in this case, being deleted.
java.lang.NullPointerException
at
com.metamatrix.modeler.diagram.ui.pakkage.PackageDiagramUtil.createPackageDiagram(PackageDiagramUtil.java:43)
at
com.metamatrix.modeler.diagram.ui.pakkage.PackageDiagramProvider.createPackageDiagram(PackageDiagramProvider.java:57)
at
com.metamatrix.modeler.diagram.ui.pakkage.PackageDiagramProvider.getPackageDiagram(PackageDiagramProvider.java:136)
at
com.metamatrix.modeler.diagram.ui.pakkage.PackageDiagramType.getDiagramForContext(PackageDiagramType.java:179)
at
com.metamatrix.modeler.diagram.ui.DiagramTypeManager.getDiagramForContext(DiagramTypeManager.java:221)
at
com.metamatrix.modeler.diagram.ui.editor.DiagramEditor.openContext(DiagramEditor.java:1155)
at
com.metamatrix.modeler.diagram.ui.editor.DiagramEditor.openContext(DiagramEditor.java:1126)
at
com.metamatrix.modeler.diagram.ui.editor.DiagramEditor.setDiagram(DiagramEditor.java:1511)
at
com.metamatrix.modeler.diagram.ui.editor.DiagramEditor.openContext(DiagramEditor.java:1142)
at
com.metamatrix.modeler.diagram.ui.editor.DiagramEditor.openContext(DiagramEditor.java:1126)
at
com.metamatrix.modeler.diagram.ui.editor.DiagramEditor.notifyChanged(DiagramEditor.java:1097)
at com.metamatrix.modeler.internal.ui.editors.ModelEditor$5.run(ModelEditor.java:1117)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira