]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@19497 ac1ea38d-2e2b...
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 25 Jan 2011 10:52:11 +0000 (10:52 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 25 Jan 2011 10:52:11 +0000 (10:52 +0000)
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/viewUtils/SysdynDatasetSelectionListener.java

index 79738f173d579ff3c8df2a746467c6952cbd9cca..f82f517e0017f3d77e45390a550c12985605b168 100644 (file)
@@ -161,7 +161,11 @@ public abstract class SysdynDatasetSelectionListener implements ISelectionListen
                if(arrayIndexes == null) {\r
                        rvis.put(rvi, rvi);\r
                } else {\r
-                       traverseIndexes(g, rvi, rvis, OrderedSetUtils.toList(g, arrayIndexes));\r
+                       List<Resource> arrayIndexList= OrderedSetUtils.toList(g, arrayIndexes);\r
+                       if(arrayIndexList.size() > 0)\r
+                               traverseIndexes(g, rvi, rvis, arrayIndexList);\r
+                       else\r
+                               rvis.put(rvi, rvi);\r
                }\r
                \r
                Resource modelResource = Variables.getModel(g, variable);\r