From 6c853381a19cc5c514b01bc0ef584ea1d7baa1bb Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 7 Jun 2023 00:30:57 +0200 Subject: [PATCH] IDEMPIERE-5756 2PackActivator: should check Adempiere.isStarted instead of getThreadPoolExecutor (#1878) --- .../src/org/adempiere/plugin/utils/AbstractActivator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/AbstractActivator.java b/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/AbstractActivator.java index 1d94bc5ab9..e2cf4a17ea 100644 --- a/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/AbstractActivator.java +++ b/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/AbstractActivator.java @@ -263,7 +263,7 @@ public abstract class AbstractActivator implements BundleActivator, ServiceTrack if (isFrameworkStarted()) frameworkStarted (); }; - if (Adempiere.getThreadPoolExecutor() != null) { + if (Adempiere.isStarted()) { Adempiere.getThreadPoolExecutor().submit(runnable); } else { MyServerStateChangeListener l = new MyServerStateChangeListener(runnable);