Update src/main/java/com/mediamanager/model/Album.java

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Gustavo Henrique Miranda 2025-12-08 00:11:47 -03:00 committed by GitHub
parent e51d5aa678
commit 7b7d1e7348
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -74,7 +74,9 @@ public class Album {
public void removeArtist(Artist artist) {
albumArtists.removeIf(aa ->
aa.getArtist() != null && aa.getArtist().getId().equals(artist.getId())
aa.getArtist() != null &&
aa.getArtist().getId() != null &&
aa.getArtist().getId().equals(artist.getId())
);
}