91680: Fix NPE

This commit is contained in:
Bruno Roemers
2022-05-25 16:57:30 +02:00
parent dd843c4646
commit 6257b386b3

View File

@@ -1544,7 +1544,7 @@ prevent the generation of resource policy entry values with null dspace_object a
log.warn(
"Item with uuid {}, handle {} has {} entity types ({}), expected 1 entity type",
item.getID(), item.getHandle(), mdvs.size(),
mdvs.stream().map(MetadataValue::getValue).collect(Collectors.toUnmodifiableList())
mdvs.stream().map(MetadataValue::getValue).collect(Collectors.toList())
);
}