]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Dependency node is a text node and it requires a string as text. Updated the string...
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 11 Jan 2013 10:42:09 +0000 (10:42 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 11 Jan 2013 10:42:09 +0000 (10:42 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@26598 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/connections/DependencyEdgeClass.java

index 9e790aa4118e968a42831b0f0f53c7c145ff38e9..372820ac4098511bea442fd8ccd98b7599ea01d1 100644 (file)
@@ -130,8 +130,8 @@ public class DependencyEdgeClass {
             else\r
                 location = (String) polarityLocationPair.second;\r
             \r
-            if(polarityPair != null)\r
-                node.init((String)  polarityPair.second, location, font, color, 0, 0, 0.235);\r
+            String text = polarityPair != null ? (String)  polarityPair.second : "";\r
+            node.init(text, location, font, color, 0, 0, 0.235);\r
             \r
             update(e);\r
         }\r