SSR: prevent NPE (EA-62397 - NPE: MatcherImpl.processMatchesInElement)

This commit is contained in:
Bas Leijdekkers
2014-12-29 15:25:16 +01:00
parent 9d8fddc0c3
commit ca2d988a47
@@ -145,7 +145,10 @@ public class MatcherImpl {
visitor.matchContext(matchedNodes);
} finally {
matchedNodes.reset();
matchContext.getOptions().setScope(null);
final MatchOptions options = matchContext.getOptions();
if (options != null) {
options.setScope(null);
}
}
}