removed null objects from flattened Field<T> in mergeLists

This commit is contained in:
Claudio Atzori 2020-05-25 10:11:41 +02:00
parent de108f54d6
commit 0ab0206b4d
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ public abstract class OafEntity extends Oaf implements Serializable {
.stream(lists) .stream(lists)
.filter(Objects::nonNull) .filter(Objects::nonNull)
.flatMap(List::stream) .flatMap(List::stream)
.filter(Objects::nonNull)
.distinct() .distinct()
.collect(Collectors.toList()); .collect(Collectors.toList());
} }