From decdb314c6ca6fe964623d84c9bc640d96f6bc03 Mon Sep 17 00:00:00 2001 From: Markus Weigelt Date: Thu, 25 Jan 2024 14:02:19 +0100 Subject: [PATCH] Update Kitodo/src/main/java/org/kitodo/production/helper/metadata/MediaPartialLogicalDivisionComparator.java Co-authored-by: Arved Solth --- .../helper/metadata/MediaPartialLogicalDivisionComparator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kitodo/src/main/java/org/kitodo/production/helper/metadata/MediaPartialLogicalDivisionComparator.java b/Kitodo/src/main/java/org/kitodo/production/helper/metadata/MediaPartialLogicalDivisionComparator.java index 5811c785c35..bb0257e0ed6 100644 --- a/Kitodo/src/main/java/org/kitodo/production/helper/metadata/MediaPartialLogicalDivisionComparator.java +++ b/Kitodo/src/main/java/org/kitodo/production/helper/metadata/MediaPartialLogicalDivisionComparator.java @@ -22,7 +22,7 @@ public class MediaPartialLogicalDivisionComparator implements Comparator 0 && logicalDivisionB.getViews().size() > 0) { + if (!logicalDivisionA.getViews().isEmpty() && !logicalDivisionB.getViews().isEmpty()) { View viewA = logicalDivisionA.getViews().getFirst(); View viewB = logicalDivisionB.getViews().getFirst(); if (Objects.nonNull(viewA) && Objects.nonNull(viewB)) {