Error on crtl+K to commit

When I use the shortcut key crtl+K to commit the code, an error is reported, and the submission box cannot pop up, but it is normal to use the command line in the terminal.

Environment:

  • Java: JetBrains s.r.o. 17.0.6
  • OS: Windows 10 amd64
  • IDE: Android Studio Flamingo | 2022.2.1 Patch 2
  • SonarLint: 6.9.3
java.lang.NullPointerException: Cannot invoke "java.util.List.stream()" because "gitBaseInfos" is null
	at org.codeReview.plugin.ui.handler.CheckCommitTemplateHandler$MyRefreshableOnComponent.restoreState(CheckCommitTemplateHandler.java:172)
	at c.ij.vcs.commit.AbstractCommitWorkflowKt.restoreState(AbstractCommitWorkflow.kt:40)
	at c.ij.vcs.commit.SingleChangeListCommitWorkflowHandler.initCommitOptions(SingleChangeListCommitWorkflowHandler.kt:118)
	at c.ij.vcs.commit.SingleChangeListCommitWorkflowHandler.activate(SingleChangeListCommitWorkflowHandler.kt:59)
	at c.ij.oa.vcs.changes.ui.CommitChangeListDialog.commitChanges(CommitChangeListDialog.java:228)
	at c.ij.oa.vcs.changes.ui.CommitChangeListDialog.commitChanges(CommitChangeListDialog.java:145)
	at c.ij.oa.vcs.actions.AbstractCommonCheckinAction.performCheckIn(AbstractCommonCheckinAction.kt:132)
	at c.ij.oa.vcs.actions.AbstractCommonCheckinAction$queueCheckin$1.run(AbstractCommonCheckinAction.kt:87)
	at c.ij.oa.vcs.changes.InvokeAfterUpdateCallback$CallbackBase.invokeCallback(InvokeAfterUpdateCallback.java:66)
	at c.ij.oa.vcs.changes.InvokeAfterUpdateCallback$ProgressCallback$ModalWaiter.onFinished(InvokeAfterUpdateCallback.java:165)
	at c.ij.oa.progress.impl.CoreProgressManager.finishTask(CoreProgressManager.java:589)
	at c.ij.oa.progress.impl.ProgressManagerImpl.finishTask(ProgressManagerImpl.java:155)
	at c.ij.oa.progress.impl.CoreProgressManager.lambda$runProcessWithProgressSynchronously$9(CoreProgressManager.java:547)

Hi,

It looks like your SonarLint version is quite out of date. The current version is 8.4.0.73538.

Can you upgrade and see if this is still replicable?

Also, I don’t see sonarlint anywhere in this stacktrace. What makes you think the error is caused by SonarLint?

 
Thx,
Ann