Skip to content

Commit

Permalink
Avoid NPEs in includeAnnotation when annotationValue is null
Browse files Browse the repository at this point in the history
Fixes issue introduced by #4614
  • Loading branch information
zakkak authored and loicottet committed Jun 21, 2022
1 parent f33384d commit 6348f5c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,9 @@ private void registerTypesForAnnotationDefault(DuringAnalysisAccessImpl access,
}

private static boolean includeAnnotation(DuringAnalysisAccessImpl access, AnnotationValue annotationValue) {
if (annotationValue == null) {
return false;
}
for (Class<?> type : annotationValue.getTypes()) {
if (type == null || SubstitutionReflectivityFilter.shouldExclude(type, access.getMetaAccess(), access.getUniverse())) {
return false;
Expand Down

0 comments on commit 6348f5c

Please sign in to comment.