Error in SonarLint for IntelliJ with handleEvent

Environment:

  • Java: JetBrains s.r.o. 17.0.8
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2023.2.2
  • SonarLint: 9.0.0.75308

*** exception class was changed or removed

  Exception thrown by subscriber method handleEvent(o.ss.sl.core.event.ConfigurationScopeRemovedEvent) on subscriber o.ss.sl.core.websocket.WebSocketService@37972b9a when dispatching event: o.ss.sl.core.event.ConfigurationScopeRemovedEvent@37d56f67
  
  java.lang.NullPointerException: Cannot invoke "o.ss.sl.core.websocket.SonarCloudWebSocket.unsubscribe(String)" because "this.sonarCloudWebSocket" is null
at o.ss.sl.core.websocket.WebSocketService.forget(WebSocketService.java:260)
at o.ss.sl.core.websocket.WebSocketService.handleEvent(WebSocketService.java:101)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:85)
at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:142)
at com.google.common.eventbus.Subscriber.lambda$dispatchEvent$0(Subscriber.java:71)
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:833)

Hi @Ostanya, your SonarLint version is a bit outdated, could you try to update to the latest version and see if the issue is resolved?

Thank you