mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SSR: prevent NPE (EA-62397 - NPE: MatcherImpl.processMatchesInElement)
This commit is contained in:
+4
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user