Skip to content

Commit

Permalink
SLI-1612 Handle cases where organizationKey is null
Browse files Browse the repository at this point in the history
  • Loading branch information
nquinquenel committed Sep 23, 2024
1 parent eb522ee commit 7eb73ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ class BackendService : Disposable {
private fun initRpcServer(rpcServer: SonarLintRpcServer): CompletableFuture<Void> {
val serverConnections = getGlobalSettings().serverConnections
val sonarCloudConnections =
serverConnections.filter { it.isSonarCloud }.map { toSonarCloudBackendConnection(it) }
serverConnections.filter { it.isSonarCloud && it.organizationKey != null }.map { toSonarCloudBackendConnection(it) }
val sonarQubeConnections =
serverConnections.filter { !it.isSonarCloud }.map { toSonarQubeBackendConnection(it) }
val nodejsPath = getGlobalSettings().nodejsPath
Expand Down

0 comments on commit 7eb73ce

Please sign in to comment.