mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
RegExp: fix NPE (EA-100376)
This commit is contained in:
@@ -118,6 +118,8 @@ class RegExpEquivalenceChecker {
|
||||
}
|
||||
|
||||
private static boolean arePatternsEquivalent(RegExpPattern pattern1, RegExpPattern pattern2) {
|
||||
if (pattern1 == null) return pattern2 == null;
|
||||
if (pattern2 == null) return false;
|
||||
final RegExpBranch[] branches1 = pattern1.getBranches();
|
||||
final RegExpBranch[] branches2 = pattern2.getBranches();
|
||||
if (branches1.length != branches2.length) {
|
||||
|
||||
Reference in New Issue
Block a user