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);