diff --git a/platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/MatcherImpl.java b/platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/MatcherImpl.java index 7a166478d3c9..06a61b1da4fc 100644 --- a/platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/MatcherImpl.java +++ b/platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/MatcherImpl.java @@ -441,6 +441,8 @@ public class MatcherImpl { MalformedPatternException exception = new MalformedPatternException(); exception.initCause(e); throw exception; + } finally { + options.setScope(null); } return sink.getMatches();