From f763b884aba624b3523803703e2473126a1fc165 Mon Sep 17 00:00:00 2001 From: villberg Date: Tue, 22 Jul 2014 12:16:10 +0000 Subject: [PATCH] refs #5122 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/branches/1.8@29937 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../sysdyn/ui/editor/participant/SysdynConnectionBuilder.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynConnectionBuilder.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynConnectionBuilder.java index 5f3c3259..cd309499 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynConnectionBuilder.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynConnectionBuilder.java @@ -67,6 +67,9 @@ public class SysdynConnectionBuilder extends ConnectionBuilder{ public void create(WriteGraph graph, ConnectionJudgement judgment, Deque controlPoints, TerminalInfo startTerminal, TerminalInfo endTerminal) throws DatabaseException { + if(startTerminal == null) return; + if(endTerminal == null) return; + graph.markUndoPoint(); // If needs a valve, we will create two separate connections -- 2.47.1