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) {
|
public void removeGenre(Genre genre) {
|
||||||
if (genre != null) {
|
if (genre == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
albumGenres.removeIf(ag ->
|
albumGenres.removeIf(ag ->
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue