From b5207e4bd61cccb247948d7c8d475dca53506cf6 Mon Sep 17 00:00:00 2001 From: lempinen Date: Mon, 28 Oct 2013 11:03:48 +0000 Subject: [PATCH] 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 --- .../ui/editor/participant/SelectionUpdaterParticipant.java | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.47.1