diff options
Diffstat (limited to 'pf4j/src')
-rw-r--r-- | pf4j/src/main/java/org/pf4j/AbstractPluginManager.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java b/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java index f247998..43a69ba 100644 --- a/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java +++ b/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java @@ -350,6 +350,11 @@ public abstract class AbstractPluginManager implements PluginManager { return PluginState.STARTED; } + if (!resolvedPlugins.contains(pluginWrapper)) { + log.warn("Cannot start an unresolved plugin '{}'", getPluginLabel(pluginDescriptor)); + return pluginState; + } + if (PluginState.DISABLED == pluginState) { // automatically enable plugin on manual plugin start if (!enablePlugin(pluginId)) { |