From: lempinen Date: Mon, 28 Oct 2013 11:03:48 +0000 (+0000) Subject: diagramRuntime is checked for null before it is used X-Git-Tag: 1.8.1~216 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=b5207e4bd61cccb247948d7c8d475dca53506cf6;p=simantics%2Fsysdyn.git diagramRuntime is checked for null before it is used refs #4504 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@28137 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SelectionUpdaterParticipant.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SelectionUpdaterParticipant.java index f6101015..023c78ce 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SelectionUpdaterParticipant.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SelectionUpdaterParticipant.java @@ -73,6 +73,11 @@ public class SelectionUpdaterParticipant extends AbstractDiagramParticipant { @Override public void perform(WriteGraph graph) throws DatabaseException { Resource diagramRuntime = diagram.getHint(DiagramModelHints.KEY_DIAGRAM_RUNTIME_RESOURCE); + + if(diagramRuntime == null) { + return; + } + SysdynResource SR = SysdynResource.getInstance(graph); DiagramResource DR = DiagramResource.getInstance(graph);