Error in SonarQube for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 21.0.5
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2024.3.1
  • SonarQube for IDE: 10.13.1.80133
java.lang.NullPointerException: Parameter specified as non-null is null: method o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely, parameter virtualFile
	at o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely(ReadActionUtils.kt)
	at o.sl.ij.common.ui.ReadActionUtils.computeReadActionSafely(ReadActionUtils.kt)
	at o.sl.ij.util.SonarLintAppUtils.findModuleForFile(SonarLintAppUtils.java:53)
	at o.sl.ij.analysis.LocalFileExclusions.checkExclusionsFileByFile(LocalFileExclusions.java:163)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:155)
	at o.sl.ij.analysis.AnalysisScope.defineFrom(AnalysisScope.java:40)
	at o.sl.ij.analysis.Analysis.doRun(Analysis.java:120)
	at o.sl.ij.analysis.Analysis.run(Analysis.java:71)
	at o.sl.ij.tasks.TaskRunnerKt$startBackgroundable$task$1.run(TaskRunner.kt:54)
	at c.ij.oa.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:491)
	at c.ij.oa.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:133)
	at c.ij.oa.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$7(CoreProgressManager.java:542)
	at c.ij.oa.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:249)
	at c.ij.oa.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:98)
	at c.ij.oa.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:223)
	at c.ij.platform.diagnostic.telemetry.helpers.TraceKt.use(trace.kt:45)
	at c.ij.oa.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:222)
	at c.ij.oa.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$14(CoreProgressManager.java:674)
	at c.ij.oa.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:749)
	at c.ij.oa.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:705)
	at c.ij.oa.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:673)
	at c.ij.oa.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
	at c.ij.oa.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:203)
	at c.ij.oa.progress.ProgressManager.runProcess(ProgressManager.java:98)
	at c.ij.oa.progress.impl.ProgressRunner.lambda$submit$5(ProgressRunner.java:249)
	at c.ij.oa.progress.impl.ProgressRunner$ProgressRunnable.run(ProgressRunner.java:502)
	at c.ij.oa.progress.impl.ProgressRunner.lambda$launchTask$18(ProgressRunner.java:467)
	at c.ij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:101)
	at c.ij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:101)
	at c.ij.util.concurrency.ChildContext.runInChildContext(propagation.kt:107)
	at c.ij.util.concurrency.ChildContext.runInChildContext(propagation.kt:101)
	at c.ij.oa.progress.impl.ProgressRunner.lambda$launchTask$19(ProgressRunner.java:463)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735)

Hey @surecloud-jleite, and thanks for reaching out to us about this.

Can you reproduce this issue, and do you remember in which context it happened?

I believe it seems to happen in very rare cases. I will investigate if there’s anything we can improve on in that regard.