[Cleaning] trying to avoid NPEs, this time by ruling out authors without a defined fullname

pull/92/head
Claudio Atzori 3 years ago
parent 3465c8ccee
commit cd379eb5e3

@ -190,6 +190,15 @@ public class CleaningFunctions {
}
}
if (Objects.nonNull(r.getAuthor())) {
r
.setAuthor(
r
.getAuthor()
.stream()
.filter(a -> Objects.nonNull(a))
.filter(a -> StringUtils.isNotBlank(StringUtils.trim(a.getFullname())))
.collect(Collectors.toList()));
boolean nullRank = r
.getAuthor()
.stream()

Loading…
Cancel
Save