Skip to content

Commit

Permalink
SLI-1816 Interrupting the branch matching should not cause an error
Browse files Browse the repository at this point in the history
  • Loading branch information
eray-felek-sonarsource committed Jan 29, 2025
1 parent 5e24821 commit 63ff89d
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,14 @@ object SonarLintIntelliJClient : SonarLintRpcClientDelegate {
resultFuture.complete(result)
}
})
return computeOnPooledThread(project, "Waiting for branch matching result") { resultFuture.get() }
return computeOnPooledThread(project, "Waiting for branch matching result") {
try {
resultFuture.get()
} catch (e: InterruptedException) {
getService(project, SonarLintConsole::class.java).error("Interrupted while waiting for branch matching result", e)
null
}
}
}

override fun matchProjectBranch(
Expand Down

0 comments on commit 63ff89d

Please sign in to comment.