SonarLint - Parameter specified as non-null is null

Environment:

  • Java: JetBrains s.r.o. 17.0.6
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2023.1
  • SonarLint: 8.1.0.65508
java.lang.NullPointerException: Parameter specified as non-null is null: method o.sl.ij.ui.SonarLintRulePanel.setSelectedFinding, parameter module
	at o.sl.ij.ui.SonarLintRulePanel.setSelectedFinding(SonarLintRulePanel.kt)
	at o.sl.ij.ui.ReportPanel.updateOnSelect(ReportPanel.java:172)
	at o.sl.ij.ui.ReportPanel.issueTreeSelectionChanged(ReportPanel.java:150)
	at java.desktop/javax.swing.JTree.fireValueChanged(JTree.java:3021)
	at java.desktop/javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:3522)
	at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:650)
	at c.ij.ui.treeStructure.Tree$MySelectionModel.fireValueChanged(Tree.java:656)
	at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1120)
	at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:306)
	at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:200)
	at java.desktop/javax.swing.JTree.setSelectionPath(JTree.java:1710)
	at java.desktop/javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java:2764)
	at java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:4099)
	at java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:4038)
	at c.ij.util.ui.MouseEventAdapter.mousePressed(MouseEventAdapter.java:31)

Hi @Epicureo,

Thanks for raising this problem, I managed to reproduce it and created this ticket. We will fix it in the next few weeks.

Thanks for using SonarLint :slight_smile: