]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@19149 ac1ea38d-2e2b...
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 14 Dec 2010 12:26:46 +0000 (12:26 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 14 Dec 2010 12:26:46 +0000 (12:26 +0000)
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/ArrayVariableUtils.java

index 137267a921323b9ca05464eb3197dd8e310ef024..702676798e648f0a75e13feb436bb61cd32d2e79 100644 (file)
@@ -38,7 +38,7 @@ public class ArrayVariableUtils {
                }\r
                \r
                \r
-               for(int i = 0; i < elements.length; i++) {\r
+               for(int i = 0; i < elements.length && i < enumerations.size(); i++) {\r
                        if(elements[i].trim().equals(":"))\r
                                continue;\r
                        if(elements[i].indexOf(":") != elements[i].lastIndexOf(":")) {\r