]> source.dussan.org Git - pf4j.git/commitdiff
Check proper list for debug logging (#366)
authorGunoH <GunoH@users.noreply.github.com>
Tue, 11 Feb 2020 09:15:33 +0000 (10:15 +0100)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2020 09:15:33 +0000 (11:15 +0200)
pf4j/src/main/java/org/pf4j/AbstractExtensionFinder.java

index 3cfbc7ea9ab421e5c6ec65d2ec43c3c15c932091..0862501ba499cab14262d98be191e5be28e756a8 100644 (file)
@@ -63,7 +63,7 @@ public abstract class AbstractExtensionFinder implements ExtensionFinder, Plugin
             result.addAll(pluginExtensions);
         }
 
-        if (entries.isEmpty()) {
+        if (result.isEmpty()) {
             log.debug("No extensions found for extension point '{}'", type.getName());
         } else {
             log.debug("Found {} extensions for extension point '{}'", result.size(), type.getName());