Skip to content

Commit

Permalink
Fix dereferenced variable may be null
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-ronge authored Feb 26, 2024
1 parent ad2e804 commit 849d8d2
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 849d8d2

Please sign in to comment.