TestNG-J exception

I have this exception while typing (IntelliJ IDEA 7.0 M1 and TestNG-J 1.0.6). My project has no test case.

No message
java.lang.NullPointerException
at com.theoryinpractice.testng.util.TestNGUtil$2.isAccepted(TestNGUtil.java:332)
at com.intellij.psi.search.PsiElementProcessor$CollectFilteredElements.execute(PsiElementProcessor.java:71)
at com.intellij.psi.util.PsiTreeUtil.processElements(PsiTreeUtil.java:261)
at com.intellij.psi.util.PsiTreeUtil.processElements(PsiTreeUtil.java:263)
at com.intellij.psi.util.PsiTreeUtil.processElements(PsiTreeUtil.java:263)
at com.intellij.psi.util.PsiTreeUtil.collectElements(PsiTreeUtil.java:255)
at com.theoryinpractice.testng.util.TestNGUtil.getTestNGAnnotations(TestNGUtil.java:327)
at com.theoryinpractice.testng.inspection.DependsOnGroupsInspection.checkClass(DependsOnGroupsInspection.java:59)
at com.intellij.codeInspection.LocalInspectionTool$1.visitClass(LocalInspectionTool.java:96)
at com.intellij.psi.impl.source.PsiClassImpl.accept(PsiClassImpl.java:329)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1$1.run(LocalInspectionsPass.java:2)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:51)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.run(LocalInspectionsPass.java:5)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at com.intellij.concurrency.JobImpl.scheduleAndWaitForResults(JobImpl.java:76)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.inspect(LocalInspectionsPass.java:34)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:178)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:101)
at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:18)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:66)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:1)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:303)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:1)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:51)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:9)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)

1 comment

This is fixed in the version version. It basically happens whe inspections run on a class that doesn't have a qualified name yet.

0

Please sign in to leave a comment.