I'm try to write my own inspection. When I run my...
# kontributors
v
I'm try to write my own inspection. When I run my inspection in IDEA I get the following NPE:
Copy code
null
java.lang.NullPointerException
	at com.intellij.codeInspection.ui.DefaultInspectionToolPresentation.stripUIRefsFromInspectionDescription(DefaultInspectionToolPresentation.java:90)
	at com.intellij.codeInspection.ui.InspectionNodeInfo.<init>(InspectionNodeInfo.java:78)
	at com.intellij.codeInspection.ui.InspectionResultsView.createBaseRightComponentFor(InspectionResultsView.java:644)
	at com.intellij.codeInspection.ui.InspectionResultsView.showInRightPanel(InspectionResultsView.java:568)
	at com.intellij.codeInspection.ui.InspectionResultsView.syncRightPanel(InspectionResultsView.java:523)
	at com.intellij.codeInspection.ui.InspectionResultsView.openRightPanelIfNeed(InspectionResultsView.java:482)
	at com.intellij.codeInspection.ui.InspectionTreeUpdater$MyTreeUpdate.run(InspectionTreeUpdater.java:65)
	at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:337)
...
Do you have any ideas what I'm doing wrong? I report the inspection like this:
holder.registerProblem(expression, "the boolean expression is always true", ProblemHighlightType.WEAK_WARNING)