Skip to content

Commit

Permalink
Merge pull request kitodo#5956 from matthias-ronge/patch-90
Browse files Browse the repository at this point in the history
Fix dereferenced variable may be null
  • Loading branch information
solth authored Mar 28, 2024
2 parents c72259c + 849d8d2 commit 47b263c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47b263c

Please sign in to comment.