From 16690d5362d46e1dd86b94622f673f4f40e65300 Mon Sep 17 00:00:00 2001 From: Decebal Suiu Date: Thu, 27 Oct 2022 00:34:59 +0300 Subject: [PATCH] Fix #508 --- .../java/org/pf4j/processor/ExtensionAnnotationProcessor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.39.5