当我尝试从Analyze -> Inspect Code导出报告时,报告未保存,并且事件日志从 IDE Fatal Error 窗口显示以下错误:
null java.lang.NullPointerException at com.intellij.codeInspection.ex.DescriptorComposer.composeDescription(DescriptorComposer.java:195) at com.intellij.codeInspection.ex.DescriptorComposer.compose(DescriptorComposer.java:64) at com.intellij.codeInspection .export.InspectionTreeHtmlWriter.lambda$null$0(InspectionTreeHtmlWriter.java:107) at com.intellij.codeInspection.export.InspectionTreeHtmlWriter.traverseInspectionTree(InspectionTreeHtmlWriter.java:63) at com.intellij.codeInspection.export.InspectionTreeHtmlWriter.traverseInspectionTree(InspectionTreeHtmlWriter. java:65) 在 com.intellij.codeInspection.export.InspectionTreeHtmlWriter.traverseInspectionTree(InspectionTreeHtmlWriter.java:65) 在 com.intellij.codeInspection.export.InspectionTreeHtmlWriter.appendTree(InspectionTreeHtmlWriter.java:185) 在 com.intellij.codeInspection 的 com.intellij.codeInspection.export.InspectionTreeHtmlWriter.lambda$serializeTreeToHtml$2(InspectionTreeHtmlWriter.java:84)。 export.InspectionTreeHtmlWriter.serializeTreeToHtml(InspectionTreeHtmlWriter.java:72) at com.intellij.codeInspection.export.InspectionTreeHtmlWriter.(InspectionTreeHtmlWriter.java:54) at com.intellij.codeInspection.ui.actions.ExportHTMLAction.lambda$null$0(ExportHTMLAction. java:102) 在 com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:912) 在 com.intellij.codeInspection.ui.actions.ExportHTMLAction.lambda$null$1(ExportHTMLAction.java:96) 在com.intellij.openapi.progress.impl.CoreProgressManager 2 美元。在 com.intellij.openapi.progress.impl.CoreProgressManager 运行(CoreProgressManager.java:247)$TaskRunnable.run(CoreProgressManager.java:713) 在 com.intellij.openapi.progress.impl.CoreProgressManager$5.run(CoreProgressManager.java :397) 在 com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157) 在 com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:543) 在 com .intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:488) 在 com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94) 在 com.intellij.openapi.progress.impl .CoreProgressManager.runProcess(CoreProgressManager.java:144) 在 com.intellij.openapi。application.impl.ApplicationImpl.lambda$null$10(ApplicationImpl.java:575) 在 com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315) 在 java.util.concurrent.Executors$RunnableAdapter。在 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 在 java.util.concurrent.FutureTask.run(FutureTask.java:266) 在 java.util.concurrent.FutureTask.run(FutureTask.java:266) 调用(Executors.java:511) 在 java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:617) 在 java.lang.Thread.run(Thread.java:745)266) 在 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 在 java.lang.Thread.run(Thread.java :745)266) 在 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 在 java.lang.Thread.run(Thread.java :745)