]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.issues.common/src/org/simantics/issues/common/All.java
Prevent StringIndexOutOfBoundsException when resolving issue path
[simantics/platform.git] / 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);