mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
CallMatcher: null-check
This commit is contained in:
+1
@@ -152,6 +152,7 @@ public interface CallMatcher extends Predicate<PsiMethodCallExpression> {
|
||||
|
||||
@Override
|
||||
public boolean test(PsiMethodCallExpression call) {
|
||||
if (call == null) return false;
|
||||
String name = call.getMethodExpression().getReferenceName();
|
||||
if (!myNames.contains(name)) return false;
|
||||
PsiExpression[] args = call.getArgumentList().getExpressions();
|
||||
|
||||
Reference in New Issue
Block a user