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 oracle#4614
  • Loading branch information
zakkak committed Jun 20, 2022
1 parent 9922836 commit 137a20a
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 137a20a

Please sign in to comment.