Skip to content

Commit 16a1d33

Browse files
committed
Dev: add exit from process if moduleDescriptor is null
1 parent e4a25c9 commit 16a1d33

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/src/main/java/com/readdle/codegen/JavaSwiftProcessor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ private boolean processImpl(Set<? extends TypeElement> annotations, RoundEnviron
145145

146146
if (moduleDescriptor == null) {
147147
messager.printMessage(Diagnostic.Kind.ERROR, "No package description with SwiftModule.class", null);
148+
return true; // Exit processing
148149
}
149150

150151
for (Element annotatedElement : roundEnv.getElementsAnnotatedWith(SwiftValue.class)) {

0 commit comments

Comments
 (0)