diff options
-rw-r--r-- | pf4j/src/main/java/org/pf4j/processor/ExtensionAnnotationProcessor.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pf4j/src/main/java/org/pf4j/processor/ExtensionAnnotationProcessor.java b/pf4j/src/main/java/org/pf4j/processor/ExtensionAnnotationProcessor.java index a5f82b0..66293f8 100644 --- a/pf4j/src/main/java/org/pf4j/processor/ExtensionAnnotationProcessor.java +++ b/pf4j/src/main/java/org/pf4j/processor/ExtensionAnnotationProcessor.java @@ -131,7 +131,9 @@ public class ExtensionAnnotationProcessor extends AbstractProcessor { } // write extensions - storage.write(extensions); + if (extensions.size() > 0) { + storage.write(extensions); + } return false; } |