Exception while running Inspect->Code

In 3281, I'm hitting an exception while running Analyze->Inspect Code on my whole project or module.

I think it might be an IDEA core problem rather than
a problem with any particular inspection, because
I tried lots of different combinations of Inspect Code
with just one inspection or a bunch. Hits this
inspection every time.

No message
java.lang.NullPointerException
at com.intellij.codeInspection.ex.InspectionManagerEx.isToCheckMember(InspectionManagerEx.java:254)
at com.intellij.codeInspection.ex.LocalInspectionToolWrapper$1.visitClass(LocalInspectionToolWrapper.java:12)
at com.intellij.psi.impl.source.PsiClassImpl.accept(PsiClassImpl.java:37)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.acceptChildren(TreeWrapperPsiElement.java:32)
at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:21)
at com.intellij.psi.JavaElementVisitor.visitFile(JavaElementVisitor.java:130)
at com.intellij.psi.JavaElementVisitor.visitJavaFile(JavaElementVisitor.java:332)
at com.intellij.psi.impl.source.PsiJavaFileBaseImpl.accept(PsiJavaFileBaseImpl.java:169)
at com.intellij.codeInspection.ex.LocalInspectionToolWrapper.processFile(LocalInspectionToolWrapper.java:9)
at com.intellij.codeInspection.ex.InspectionManagerEx$13.visitJavaFile(InspectionManagerEx.java:2)
at com.intellij.psi.impl.source.PsiJavaFileBaseImpl.accept(PsiJavaFileBaseImpl.java:169)
at com.intellij.analysis.AnalysisScope$4.processFile(AnalysisScope.java:3)
at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:5)
at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:7)
at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:7)
at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:7)
at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:7)
at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:7)
at com.intellij.openapi.roots.impl.ProjectFileIndexImpl.iterateContent(ProjectFileIndexImpl.java:69)
at com.intellij.analysis.AnalysisScope.accept(AnalysisScope.java:110)
at com.intellij.codeInspection.ex.InspectionManagerEx.a(InspectionManagerEx.java:155)
at com.intellij.codeInspection.ex.InspectionManagerEx.access$1400(InspectionManagerEx.java:1)
at com.intellij.codeInspection.ex.InspectionManagerEx$12.run(InspectionManagerEx.java:5)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:102)
at com.intellij.codeInspection.ex.InspectionManagerEx.b(InspectionManagerEx.java:167)
at com.intellij.codeInspection.ex.InspectionManagerEx.access$300(InspectionManagerEx.java:7)
at com.intellij.codeInspection.ex.InspectionManagerEx$11.run(InspectionManagerEx.java)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:17)
at com.intellij.openapi.application.impl.ApplicationImpl$1MyThread.run(ApplicationImpl.java:9)

1 comment
Comment actions Permalink

Thanks. Fixed.
-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

In 3281, I'm hitting an exception while running Analyze->Inspect Code
on my whole project or module.

I think it might be an IDEA core problem rather than
a problem with any particular inspection, because
I tried lots of different combinations of Inspect Code
with just one inspection or a bunch. Hits this
inspection every time.
No message
java.lang.NullPointerException
at
com.intellij.codeInspection.ex.InspectionManagerEx.isToCheckMember(Ins
pectionManagerEx.java:254)
at
com.intellij.codeInspection.ex.LocalInspectionToolWrapper$1.visitClass
(LocalInspectionToolWrapper.java:12)
at
com.intellij.psi.impl.source.PsiClassImpl.accept(PsiClassImpl.java:37)
at
com.intellij.psi.impl.source.TreeWrapperPsiElement.acceptChildren(Tree
WrapperPsiElement.java:32)
at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveE
lementVisitor.java:21)
at
com.intellij.psi.JavaElementVisitor.visitFile(JavaElementVisitor.java:
130)
at
com.intellij.psi.JavaElementVisitor.visitJavaFile(JavaElementVisitor.j
ava:332)
at
com.intellij.psi.impl.source.PsiJavaFileBaseImpl.accept(PsiJavaFileBas
eImpl.java:169)
at
com.intellij.codeInspection.ex.LocalInspectionToolWrapper.processFile(
LocalInspectionToolWrapper.java:9)
at
com.intellij.codeInspection.ex.InspectionManagerEx$13.visitJavaFile(In
spectionManagerEx.java:2)
at
com.intellij.psi.impl.source.PsiJavaFileBaseImpl.accept(PsiJavaFileBas
eImpl.java:169)
at
com.intellij.analysis.AnalysisScope$4.processFile(AnalysisScope.java:3
)
at
com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(F
ileIndexImplUtil.java:5)
at
com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(F
ileIndexImplUtil.java:7)
at
com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(F
ileIndexImplUtil.java:7)
at
com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(F
ileIndexImplUtil.java:7)
at
com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(F
ileIndexImplUtil.java:7)
at
com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(F
ileIndexImplUtil.java:7)
at
com.intellij.openapi.roots.impl.ProjectFileIndexImpl.iterateContent(Pr
ojectFileIndexImpl.java:69)
at com.intellij.analysis.AnalysisScope.accept(AnalysisScope.java:110)
at
com.intellij.codeInspection.ex.InspectionManagerEx.a(InspectionManager
Ex.java:155)
at
com.intellij.codeInspection.ex.InspectionManagerEx.access$1400(Inspect
ionManagerEx.java:1)
at
com.intellij.codeInspection.ex.InspectionManagerEx$12.run(InspectionMa
nagerEx.java:5)
at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(Ap
plicationImpl.java:102)
at
com.intellij.codeInspection.ex.InspectionManagerEx.b(InspectionManager
Ex.java:167)
at
com.intellij.codeInspection.ex.InspectionManagerEx.access$300(Inspecti
onManagerEx.java:7)
at
com.intellij.codeInspection.ex.InspectionManagerEx$11.run(InspectionMa
nagerEx.java)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(Prog
ressManagerImpl.java:17)
at
com.intellij.openapi.application.impl.ApplicationImpl$1MyThread.run(Ap
plicationImpl.java:9)



0

Please sign in to leave a comment.