bzixilu / dotplugin

Dot language plugin for Intellij IDEA
55 stars 10 forks source link

NPE in the case of complex subgraph node #7

Closed bzixilu closed 6 years ago

bzixilu commented 6 years ago

digraph { "bot8" -> {"bot9"; "bot2"; "bot1"}; "bot9" -> {"bot8"; "bot7"; "bot4b"; "bot7c"}; "bot7" -> {"bot9"}; "bot4b" -> {"bot9"}; "bot7c" -> {"bot9"}; "bot2" -> {"bot8"}; "bot1" -> {"bot8"}; }

java.lang.NullPointerException at org.plugin.dot.DotPSITreeUtil$1.visitElement(DotPSITreeUtil.java:47) at com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:274) at org.plugin.dot.psi.impl.DotEdgeStmtImpl.accept(DotEdgeStmtImpl.java:26) at com.intellij.psi.impl.PsiElementBase.acceptChildren(PsiElementBase.java:69) at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:40) at org.plugin.dot.DotPSITreeUtil$1.visitElement(DotPSITreeUtil.java:49) at com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:274) at org.plugin.dot.psi.impl.DotStmtImpl.accept(DotStmtImpl.java:26) at com.intellij.psi.impl.PsiElementBase.acceptChildren(PsiElementBase.java:69) at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:40) at org.plugin.dot.DotPSITreeUtil$1.visitElement(DotPSITreeUtil.java:49) at com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:274) at org.plugin.dot.psi.impl.DotStmtListImpl.accept(DotStmtListImpl.java:26) at com.intellij.psi.impl.PsiElementBase.acceptChildren(PsiElementBase.java:69) at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:40) at org.plugin.dot.DotPSITreeUtil$1.visitElement(DotPSITreeUtil.java:49) at org.plugin.dot.DotPSITreeUtil.getNotMentionedNodeIds(DotPSITreeUtil.java:52) at org.plugin.dot.DotAnnotator.annotate(DotAnnotator.java:32) at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.a(DefaultHighlightVisitor.java:139) at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:102) at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:366) at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:298) at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:325) at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:328) at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:86) at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:328) at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:295) at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:238) at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:83) at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:69) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.d(PassExecutorService.java:423) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1161) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.e(PassExecutorService.java:416) at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:580) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.c(PassExecutorService.java:415) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.b(PassExecutorService.java:391) at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:147) at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:222) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:389) at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:161) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)