Fix broken removeGenre to correct logic for the null-pointer exception
This commit is contained in:
parent
09d20efba6
commit
8119530bef
|
|
@ -98,7 +98,7 @@ public class Album {
|
|||
}
|
||||
|
||||
public void removeGenre(Genre genre) {
|
||||
if (genre != null) {
|
||||
if (genre == null) {
|
||||
return;
|
||||
}
|
||||
albumGenres.removeIf(ag ->
|
||||
|
|
|
|||
Loading…
Reference in New Issue