mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-137488 - CloudFoundry: NPE on undeploy of an application
This commit is contained in:
+6
-2
@@ -142,7 +142,8 @@ public class ServerConnectionImpl<D extends DeploymentConfiguration> implements
|
||||
myLogManagers.put(deploymentName, logManager);
|
||||
handler.printlnSystemMessage("Deploying '" + deploymentName + "'...");
|
||||
onDeploymentStarted.run(deploymentName);
|
||||
instance.deploy(task, logManager, new DeploymentOperationCallbackImpl(deploymentName, (DeploymentTaskImpl<D>)task, handler, deployment));
|
||||
instance
|
||||
.deploy(task, logManager, new DeploymentOperationCallbackImpl(deploymentName, (DeploymentTaskImpl<D>)task, handler, deployment));
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -290,7 +291,10 @@ public class ServerConnectionImpl<D extends DeploymentConfiguration> implements
|
||||
}
|
||||
}
|
||||
}
|
||||
myLogManagers.remove(deploymentName).disposeLogs();
|
||||
DeploymentLogManagerImpl logManager = myLogManagers.remove(deploymentName);
|
||||
if (logManager != null) {
|
||||
logManager.disposeLogs();
|
||||
}
|
||||
myEventDispatcher.queueDeploymentsChanged(ServerConnectionImpl.this);
|
||||
computeDeployments(myRuntimeInstance, EmptyRunnable.INSTANCE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user