From 287c8e8582649f0efa17705f7b358cfe75c40511 Mon Sep 17 00:00:00 2001 From: Jussi Koskela Date: Thu, 26 Oct 2017 13:08:06 +0300 Subject: [PATCH] Prevent StringIndexOutOfBoundsException when resolving issue path refs #7577 Change-Id: Iaeac31b4d83a972fbcef8f3742321b9c0af219aa --- .../src/org/simantics/issues/common/All.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bundles/org.simantics.issues.common/src/org/simantics/issues/common/All.java b/bundles/org.simantics.issues.common/src/org/simantics/issues/common/All.java index d2120cd78..6eccb1755 100644 --- a/bundles/org.simantics.issues.common/src/org/simantics/issues/common/All.java +++ b/bundles/org.simantics.issues.common/src/org/simantics/issues/common/All.java @@ -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); -- 2.47.1