]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Added a null check. Expression validation treats sheet references as sheet names...
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 31 Aug 2012 09:34:38 +0000 (09:34 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 31 Aug 2012 09:34:38 +0000 (09:34 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@25555 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/ExpressionUtils.java

index fa3d62ab16084b4861e0a10aaddc0f16035bbe93..c9419675b3b31088327ef0d2ab7248c73a414ef0 100644 (file)
@@ -186,7 +186,7 @@ public class ExpressionUtils {
                         current = getElement(current, parts[i]);\r
                     }\r
                     \r
-                    if(current == null) {\r
+                    if(current == null && conf.getModuleType() != null) {\r
                        // Sheets are currently located in the model root. Try to find the sheet.\r
                        current = conf.getModuleType().getParent(); // Get module type parent (should be a model)\r
                        if(current instanceof Model)\r