Error in SonarLint for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2023.3.5
  • SonarLint: 10.4.0.77904

Internal error: java.lang.NullPointerException: Cannot invoke “kotlin.Pair.getFirst()” because “rootsPair” is null

java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "kotlin.Pair.getFirst()" because "rootsPair" is null
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:649)
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.NullPointerException: Cannot invoke "kotlin.Pair.getFirst()" because "rootsPair" is null
	at c.ij.oa.roots.impl.ModuleFileIndexImpl.iterateContent(ModuleFileIndexImpl.java:66)
	at c.ij.oa.roots.impl.FileIndexBase.iterateContent(FileIndexBase.java:33)
	at c.ij.oa.roots.impl.ModuleFileIndexImpl.iterateContent(ModuleFileIndexImpl.java:29)
	at o.sl.ij.SonarLintIntelliJClient.listFilesInContentRoots(SonarLintIntelliJClient.kt:570)
	at o.sl.ij.SonarLintIntelliJClient.listModuleFiles(SonarLintIntelliJClient.kt:530)
	at o.sl.ij.SonarLintIntelliJClient.listFiles(SonarLintIntelliJClient.kt:524)

Hi,

We released 10.4.1 late last week. Can you upgrade and see if this is still replicable?

 
Thx,
Ann