Error in SonarLint for IntelliJ 10.4.1 - IndexOutOfBoundsException

Environment:

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

Unable to run check class org.sonar.java.se.SymbolicExecutionVisitor - on file ‘[uri=file:///path/name.java]’, To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/

java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
	at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
	at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
	at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
	at java.base/java.util.Objects.checkIndex(Objects.java:361)
	at java.base/java.util.ArrayList.get(ArrayList.java:427)
	at org.sonar.java.se.ExplodedGraphWalker.executeAssignment(ExplodedGraphWalker.java:962)
	at org.sonar.java.se.ExplodedGraphWalker.visit(ExplodedGraphWalker.java:649)
	at org.sonar.java.se.ExplodedGraphWalker.execute(ExplodedGraphWalker.java:264)
	at org.sonar.java.se.ExplodedGraphWalker.visitMethod(ExplodedGraphWalker.java:224)
	at org.sonar.java.se.SymbolicExecutionVisitor.execute(SymbolicExecutionVisitor.java:73)
	at org.sonar.java.se.xproc.BehaviorCache.get(BehaviorCache.java:98)
	at org.sonar.java.se.xproc.BehaviorCache.get(BehaviorCache.java:81)
	at org.sonar.java.se.ExplodedGraphWalker.executeMethodInvocation(ExplodedGraphWalker.java:756)

Hi,

Thanks for your report.
Could you please submit the verbose logs if you could reproduce the issue?
Here are the details on how to enable verbose logging.