From: lempinen Date: Tue, 14 Dec 2010 12:26:46 +0000 (+0000) Subject: git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@19149 ac1ea38d-2e2b... X-Git-Tag: 2011-04-05-db-merge-trunk~50 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=dbf32790b7672e0052828a2ed03b2a4062b66420;p=simantics%2Fsysdyn.git git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@19149 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/ArrayVariableUtils.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/ArrayVariableUtils.java index 137267a9..70267679 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/ArrayVariableUtils.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/ArrayVariableUtils.java @@ -38,7 +38,7 @@ public class ArrayVariableUtils { } - for(int i = 0; i < elements.length; i++) { + for(int i = 0; i < elements.length && i < enumerations.size(); i++) { if(elements[i].trim().equals(":")) continue; if(elements[i].indexOf(":") != elements[i].lastIndexOf(":")) {