Browse Source

Merge pull request #125 from ShaoboAi/master

Fix NPE
pull/128/head
Decebal Suiu 8 years ago committed by GitHub
parent
commit
c82df37f67
  1. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/AbstractExtensionFinder.java

2
pf4j/src/main/java/ro/fortsoft/pf4j/AbstractExtensionFinder.java

@ -78,7 +78,7 @@ public abstract class AbstractExtensionFinder implements ExtensionFinder, Plugin
// classpath's extensions <=> pluginId = null
Set<String> classNames = findClassNames(pluginId);
if (classNames.isEmpty()) {
if (classNames == null || classNames.isEmpty()) {
return result;
}

Loading…
Cancel
Save