Skip to content

Commit

Permalink
Fixes null pointer in ComponentDefinition
Browse files Browse the repository at this point in the history
In case of nested classes and some other types of classes.
Reproducible with a nested class in an app, 
deployed on GF embedded using ScatteredArchive pointed to target/classes
Signed-off-by:Ondro Mihalyi <mihalyi@omnifish.ee>
  • Loading branch information
OndroMih committed Nov 6, 2022
1 parent 4152739 commit 7817755
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,11 @@ private boolean isExcludedFromAnnotationProcessing(Class<?> clazz) {
if (clazz.getPackage().getName().startsWith("java.lang")) {
return true;
}
return EXCLUDED_FROM_ANNOTATION_PROCESSING.contains(clazz.getCanonicalName());
if (clazz.getCanonicalName() == null) {
return false;
} else {
return EXCLUDED_FROM_ANNOTATION_PROCESSING.contains(clazz.getCanonicalName());
}
}


Expand Down

0 comments on commit 7817755

Please sign in to comment.