]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/RVI.java
Fixed RVI.fromResourceFormat GUID RVI part parsing
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / variable / RVI.java
index daae9b9c32f76cf5bc9a1c8b699aee6661f47f19..a5f22c83c1a44233bcce46550aefdab8a1b39dec 100644 (file)
@@ -407,8 +407,8 @@ public class RVI extends Bean {
                                        }
                                }
                        }
-                       if (str.indexOf(":", pos+1) > -1) {
-                           String x = str.substring(pos+1, end);
+                       if (str.indexOf(":", pos) > -1) {
+                           String x = str.substring(pos, end);
                            if (!x.isEmpty()) {
                                String[] parts = x.split(":");
                                if (parts.length == 3) {