CallMatcher: null-check

This commit is contained in:
Tagir Valeev
2017-02-06 14:40:21 +07:00
parent 805983a65c
commit 069f44aeff
@@ -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();