EA-73022 (assert: MethodCallUtils.findMethodWithReplacedArgument)

This commit is contained in:
Bas Leijdekkers
2015-09-14 11:13:54 +02:00
parent 6884de0f33
commit d3624e72d3
@@ -161,6 +161,10 @@ public class UnnecessaryBoxingInspection extends BaseInspection {
@Override
public void visitNewExpression(@NotNull PsiNewExpression expression) {
super.visitNewExpression(expression);
final PsiExpressionList argumentList = expression.getArgumentList();
if (argumentList == null) {
return;
}
final PsiType constructorType = expression.getType();
if (constructorType == null) {
return;