From 6604b0887cf7cd8bc166fbc5d6235873c8483e38 Mon Sep 17 00:00:00 2001 From: serge-rider Date: Mon, 30 Sep 2024 14:54:36 +0200 Subject: [PATCH] dbeaver/dbeaver-vscode#16 Platform shutdown fix --- .../src/io/cloudbeaver/server/CBPlatformActivator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/server/CBPlatformActivator.java b/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/server/CBPlatformActivator.java index 8bfd80106d..cee656629f 100644 --- a/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/server/CBPlatformActivator.java +++ b/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/server/CBPlatformActivator.java @@ -28,7 +28,7 @@ public class CBPlatformActivator extends WebPlatformActivator { protected void shutdownPlatform() { try { // Dispose core - if (DBWorkbench.getPlatform() instanceof CBPlatform cbPlatform) { + if (DBWorkbench.isPlatformStarted() && DBWorkbench.getPlatform() instanceof CBPlatform cbPlatform) { cbPlatform.dispose(); } } catch (Throwable e) {