]> source.dussan.org Git - pf4j.git/commitdiff
reset file format 125/head
author艾少波 <pd-shaobo@qq.com>
Fri, 17 Feb 2017 14:21:03 +0000 (22:21 +0800)
committer艾少波 <pd-shaobo@qq.com>
Fri, 17 Feb 2017 14:21:03 +0000 (22:21 +0800)
pf4j/src/main/java/ro/fortsoft/pf4j/AbstractExtensionFinder.java

index 3c2e0c6e169062bfc342b1ea0c351811de01892c..8e4a5066c857406f37863f58d8981307d34956a9 100644 (file)
@@ -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;
         }