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:
parent
e51d5aa678
commit
7b7d1e7348
|
|
@ -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())
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue