NPE in Inspection Gadgets

Error message: Exception happened in local inspection tool: Auto-boxing
java.lang.NullPointerException

at
com.siyeh.ig.psiutils.ExpectedTypeUtils.findExpectedType(ExpectedTypeUtils.java:56)

at
com.siyeh.ig.verbose.AutoBoxingInspection$AutoBoxingVisitor.visitExpression(AutoBoxingInspection.java:88)

at
com.intellij.psi.JavaElementVisitor.visitCallExpression(JavaElementVisitor.java:198)

at
com.intellij.psi.JavaElementVisitor.visitMethodCallExpression(JavaElementVisitor.java:194)

at com.intellij.psi.impl.source.tree.b.be.accept(be.java:22)

at
com.intellij.psi.impl.source.tree.CompositePsiElement.acceptChildren(CompositePsiElement.java:24)

at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:11)

at
com.intellij.psi.JavaElementVisitor.visitExpression(JavaElementVisitor.java:110)

at
com.siyeh.ig.verbose.AutoBoxingInspection$AutoBoxingVisitor.visitExpression(AutoBoxingInspection.java:79)

at
com.intellij.psi.JavaElementVisitor.visitArrayAccessExpression(JavaElementVisitor.java:22)

at com.intellij.psi.impl.source.tree.b.c.accept(c.java:1)

at
com.intellij.psi.impl.source.tree.CompositePsiElement.acceptChildren(CompositePsiElement.java:24)

at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:11)

at
com.intellij.psi.JavaElementVisitor.visitExpression(JavaElementVisitor.java:110)

at
com.siyeh.ig.verbose.AutoBoxingInspection$AutoBoxingVisitor.visitExpression(AutoBoxingInspection.java:79)

at
com.intellij.psi.JavaElementVisitor.visitAssignmentExpression(JavaElementVisitor.java:34)

at com.intellij.psi.impl.source.tree.b.g.accept(g.java:22)

at
com.intellij.psi.impl.source.tree.CompositePsiElement.acceptChildren(CompositePsiElement.java:24)

at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:11)

at
com.intellij.psi.JavaElementVisitor.visitStatement(JavaElementVisitor.java:272)

at
com.intellij.psi.JavaElementVisitor.visitExpressionStatement(JavaElementVisitor.java:122)

at com.intellij.psi.impl.source.tree.b.v.accept(v.java:16)

at
com.intellij.psi.impl.source.tree.CompositePsiElement.acceptChildren(CompositePsiElement.java:24)

at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:11)

at
com.intellij.psi.JavaElementVisitor.visitCodeBlock(JavaElementVisitor.java:66)

at com.intellij.psi.impl.source.tree.b.m.accept(m.java:55)

at
com.intellij.psi.impl.source.tree.CompositePsiElement.acceptChildren(CompositePsiElement.java:24)

at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:11)

at
com.intellij.psi.JavaElementVisitor.visitStatement(JavaElementVisitor.java:272)

at
com.intellij.psi.JavaElementVisitor.visitBlockStatement(JavaElementVisitor.java:46)

at com.intellij.psi.impl.source.tree.b.i.accept(i.java:9)

at
com.intellij.psi.impl.source.tree.CompositePsiElement.acceptChildren(CompositePsiElement.java:24)

at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:11)

at
com.intellij.psi.JavaElementVisitor.visitStatement(JavaElementVisitor.java:272)

at
com.intellij.psi.JavaElementVisitor.visitForStatement(JavaElementVisitor.java:134)

at com.intellij.psi.impl.source.tree.b.x.accept(x.java:35)

at
com.intellij.psi.impl.source.tree.CompositePsiElement.acceptChildren(CompositePsiElement.java:24)

at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:11)

at
com.intellij.psi.JavaElementVisitor.visitCodeBlock(JavaElementVisitor.java:66)

at com.intellij.psi.impl.source.tree.b.m.accept(m.java:55)

at
com.intellij.psi.impl.source.TreeWrapperPsiElement.acceptChildren(TreeWrapperPsiElement.java:69)

at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:11)

at com.intellij.psi.JavaElementVisitor.visitMethod(JavaElementVisitor.java:190)

at com.intellij.psi.impl.source.u.accept(u.java:74)

at com.siyeh.ig.ExpressionInspection.checkMethod(ExpressionInspection.java:34)

at com.intellij.codeInsight.daemon.impl.y.doCollectInformation(y.java:5)

at
com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:3)

at com.intellij.codeInsight.daemon.impl.bd$1.run(bd$1.java:0)

at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:209)

at com.intellij.codeInsight.daemon.impl.bd.a(bd.java:14)

at com.intellij.codeInsight.daemon.impl.bd.access$100(bd.java:28)

at com.intellij.codeInsight.daemon.impl.bd$0.run(bd$0.java:1)

at com.intellij.openapi.progress.a.a.runProcess(a.java:38)

at com.intellij.codeInsight.daemon.impl.bd.run(bd.java:22)

Please sign in to leave a comment.