1
0
Fork 0

avoid NPEs merging XMLInstance(s)

This commit is contained in:
Claudio Atzori 2021-12-12 12:37:38 +01:00
parent 25dc7929a9
commit b70ecccea0
1 changed files with 1 additions and 0 deletions

View File

@ -1293,6 +1293,7 @@ public class XmlRecordFactory implements Serializable {
.collect(Collectors.groupingBy(ImmutablePair::getLeft)) .collect(Collectors.groupingBy(ImmutablePair::getLeft))
.values() .values()
.stream() .stream()
.filter(Objects::nonNull)
.map(this::mergeInstances); .map(this::mergeInstances);
} }