IDEA-68194 XPath: Throwable at CompletionServiceImpl$CompletionResultSetImpl.withPrefixMatcher() on completing variable name with prefix

This commit is contained in:
sweinreuter
2011-04-18 19:38:39 +02:00
parent 2a90d04933
commit c9bdb105b2
@@ -131,7 +131,7 @@ public class XPathCompletionContributor extends CompletionContributor {
if (element.getParent() instanceof XPathVariableReference) {
final String text = element.getText();
prefix = "$" + text.substring(0, text.indexOf(CompletionLists.INTELLIJ_IDEA_RULEZ));
prefix = "$" + prefix;
}
if (element.getParent() instanceof XPathNodeTest) {