mirror of
https://github.com/gmbrax/MediaManager-core.git
synced 2026-11-09 14:00:17 +00:00
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 ->
|
||||
|
||||
Reference in New Issue
Block a user