mirror of
https://github.com/gmbrax/MediaManager-core.git
synced 2026-11-09 14:00:17 +00:00
Fix broken removeGenre to avoid possible null-pointer
This commit is contained in:
parent
bcd03fc7ce
commit
09d20efba6
@@ -98,6 +98,9 @@ public class Album {
|
||||
}
|
||||
|
||||
public void removeGenre(Genre genre) {
|
||||
if (genre != null) {
|
||||
return;
|
||||
}
|
||||
albumGenres.removeIf(ag ->
|
||||
ag.getGenre() != null &&
|
||||
ag.getGenre().getId() != null &&
|
||||
|
||||
Reference in New Issue
Block a user