diff --git a/Kitodo-API/src/main/java/org/kitodo/api/dataformat/MediaPartial.java b/Kitodo-API/src/main/java/org/kitodo/api/dataformat/MediaPartial.java index 150bca1425e..a6d825956c4 100644 --- a/Kitodo-API/src/main/java/org/kitodo/api/dataformat/MediaPartial.java +++ b/Kitodo-API/src/main/java/org/kitodo/api/dataformat/MediaPartial.java @@ -77,7 +77,7 @@ public boolean equals(Object o) { MediaPartial mediaPartial = (MediaPartial) o; - return (Objects.isNull(begin) && Objects.isNull(mediaPartial.begin)) || begin.equals(mediaPartial.getBegin()); + return Objects.equals(begin, mediaPartial.begin); } @Override