mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
QD-8704 Preventing NPE on race condition when project and application are shut down one after another
GitOrigin-RevId: 1f024ffc07b3deed311aea2e5dffa2c04e542588
This commit is contained in:
committed by
intellij-monorepo-bot
parent
aedda21a58
commit
6c3d7dfd32
+1
-1
@@ -78,7 +78,7 @@ open class MavenServerConnectorImpl(project: Project,
|
||||
mySupport = factory.create(jdk, vmOptions, mavenDistribution, project, myDebugPort)
|
||||
mySupport!!.onTerminate(Consumer {
|
||||
MavenLog.LOG.debug("[connector] terminate " + this@MavenServerConnectorImpl)
|
||||
val mavenServerManager = ApplicationManager.getApplication().getServiceIfCreated(
|
||||
val mavenServerManager = ApplicationManager.getApplication()?.getServiceIfCreated(
|
||||
MavenServerManager::class.java)
|
||||
mavenServerManager?.shutdownConnector(this@MavenServerConnectorImpl, false)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user