forked from D-Net/dnet-hadoop
[Cleaning] trying to avoid NPEs, this time by ruling out authors without a defined fullname
This commit is contained in:
parent
3465c8ccee
commit
cd379eb5e3
|
@ -190,6 +190,15 @@ public class CleaningFunctions {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Objects.nonNull(r.getAuthor())) {
|
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
|
boolean nullRank = r
|
||||||
.getAuthor()
|
.getAuthor()
|
||||||
.stream()
|
.stream()
|
||||||
|
|
Loading…
Reference in New Issue