Skip to content

Commit

Permalink
Merge pull request #3674 from swagger-api/ticket-3673
Browse files Browse the repository at this point in the history
refs #3673 - Null check getIgnoredProperties
  • Loading branch information
frantuma committed Aug 3, 2020
2 parents db45dc4 + eb09692 commit 0144bff
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2013,7 +2013,11 @@ protected boolean shouldIgnoreClass(Type type) {

private List<String> getIgnoredProperties(BeanDescription beanDescription) {
AnnotationIntrospector introspector = _mapper.getSerializationConfig().getAnnotationIntrospector();
Set<String> ignored = introspector.findPropertyIgnorals(beanDescription.getClassInfo()).findIgnoredForSerialization();
JsonIgnoreProperties.Value v = introspector.findPropertyIgnorals(beanDescription.getClassInfo());
Set<String> ignored = null;
if (v != null) {
ignored = v.findIgnoredForSerialization();
}
return ignored == null ? Collections.emptyList() : new ArrayList<>(ignored);
}

Expand Down

0 comments on commit 0144bff

Please sign in to comment.