Error in SonarLint for IntelliJ when reopening an old project

Environment:

  • Java: JetBrains s.r.o. 11.0.14.1
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2022.1
  • SonarLint: 6.7.0.45926

Trying to reopen a previous project. This NPE has the unwanted side-effect of completely preventing IntelliJ from opening the project window.

java.lang.RuntimeException: java.lang.NullPointerException
	at c.ij.oa.application.impl.LaterInvocator.invokeAndWait(LaterInvocator.java:119)
	at c.ij.oa.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:503)
	at c.ij.oa.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:523)
	at c.ij.oa.project.impl.ProjectManagerExImplKt.openProject(ProjectManagerExImpl.kt:591)
	at c.ij.oa.project.impl.ProjectManagerExImplKt.access$openProject(ProjectManagerExImpl.kt:1)
	at c.ij.oa.project.impl.ProjectManagerExImpl$doOpenAsync$1.invoke(ProjectManagerExImpl.kt:145)
	at c.ij.oa.project.impl.ProjectManagerExImpl$doOpenAsync$1.invoke(ProjectManagerExImpl.kt:56)
	at c.ij.oa.project.impl.ProjectUiFrameAllocator$run$progressRunner$1.apply(ProjectFrameAllocator.kt:96)
	at c.ij.oa.project.impl.ProjectUiFrameAllocator$run$progressRunner$1.apply(ProjectFrameAllocator.kt:72)
	at c.ij.oa.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:244)
	at c.ij.oa.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:189)
	at c.ij.oa.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:608)
	at c.ij.oa.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:683)
	at c.ij.oa.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:639)
	at c.ij.oa.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:607)

Hello @julmud and welcome to the community!
Thank you for your report. The stack trace you provided is truncated unfortunately. Could you provide full stack trace so we could investigate the issue? And/or the sample project to reproduce.

Hello

Sorry, I hadn’t noticed that the stack trace was truncated by the IntelliJ report submission. My bad. Alas, I’m no longer able to provide a full stack trace or the sample project, as I’ve since yesterday “solved” my problem by removing the directory .idea/sonarlint and its content. Reopening the project after this deletion had Sonarlint recreate its data from scratch and everything works OK now.

Sorry for the bother.