]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Prevent StringIndexOutOfBoundsException when resolving issue path 45/1145/1
authorJussi Koskela <jussi.koskela@semantum.fi>
Thu, 26 Oct 2017 10:08:06 +0000 (13:08 +0300)
committerJussi Koskela <jussi.koskela@semantum.fi>
Thu, 26 Oct 2017 10:08:06 +0000 (13:08 +0300)
refs #7577

Change-Id: Iaeac31b4d83a972fbcef8f3742321b9c0af219aa

bundles/org.simantics.issues.common/src/org/simantics/issues/common/All.java

index d2120cd78345d7fdccfcc7dcbb76d7e6d125c914..6eccb1755f22c746f9f91666e57b097a543467a8 100644 (file)
@@ -71,6 +71,7 @@ public class All {
        if(issueRoot.equals(contextRoot)) {
                String uri = graph.getURI(parent);
                String contextURI = graph.getURI(contextRoot);
+               if (uri.equals(contextURI)) return "";
                return IssueUtils.pathString(uri, contextURI.length()+1);
        } else {
                String uri = graph.getURI(parent);