Skip to content

Commit

Permalink
Add null check
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaber authored Jun 18, 2020
1 parent 082e436 commit 7622ae4
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,11 @@ private static boolean isJsonType(MediaType mediaType) {
}

private static PropertyFiltering findPropertyFiltering(Annotation... annotations) {
for (Annotation annotation : annotations) {
if (annotation.annotationType() == PropertyFiltering.class) {
return (PropertyFiltering) annotation;
if (annotations != null) {
for (Annotation annotation : annotations) {
if (annotation.annotationType() == PropertyFiltering.class) {
return (PropertyFiltering) annotation;
}
}
}

Expand Down

0 comments on commit 7622ae4

Please sign in to comment.