]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
refs #5122
authorvillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 22 Jul 2014 12:12:46 +0000 (12:12 +0000)
committervillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 22 Jul 2014 12:12:46 +0000 (12:12 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29936 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynConnectionBuilder.java

index 5f3c32594ab5b90e1d2fe96bbab8bf7a7171b566..e4467d9f3840f0737a1afa1ba60602ff221f6395 100644 (file)
@@ -66,7 +66,10 @@ public class SysdynConnectionBuilder extends ConnectionBuilder{
      */\r
     public void create(WriteGraph graph, ConnectionJudgement judgment, Deque<ControlPoint> controlPoints,\r
             TerminalInfo startTerminal, TerminalInfo endTerminal) throws DatabaseException {\r
-        \r
+\r
+       if(startTerminal == null) return;\r
+       if(endTerminal == null) return;\r
+        \r
         graph.markUndoPoint();\r
         \r
        // If needs a valve, we will create two separate connections\r