Skip to content

Commit

Permalink
Update Kitodo/src/main/java/org/kitodo/production/helper/metadata/Med…
Browse files Browse the repository at this point in the history
…iaPartialLogicalDivisionComparator.java

Co-authored-by: Arved Solth <[email protected]>
  • Loading branch information
markusweigelt and solth authored Jan 25, 2024
1 parent 7fd4e3e commit decdb31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class MediaPartialLogicalDivisionComparator implements Comparator<Logical

@Override
public int compare(LogicalDivision logicalDivisionA, LogicalDivision logicalDivisionB) {
if (logicalDivisionA.getViews().size() > 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)) {
Expand Down

0 comments on commit decdb31

Please sign in to comment.