mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
AIOOBE
This commit is contained in:
+2
-1
@@ -70,7 +70,8 @@ public class ObjectEqualsNullInspection extends BaseInspection {
|
||||
if (!MethodCallUtils.isEqualsCall(call)) {
|
||||
return;
|
||||
}
|
||||
final PsiExpression argument = call.getArgumentList().getExpressions()[0];
|
||||
PsiExpression[] args = call.getArgumentList().getExpressions();
|
||||
final PsiExpression argument = args.length > 0 ? args[0] : null;
|
||||
if (!ExpressionUtils.isNullLiteral(argument)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user