Procházet zdrojové kódy

Do not throw exception on unmatched playlist song.

Stephen Damm před 6 roky
rodič
revize
31fbf733c9

+ 1 - 1
SongBrowserPlugin/DataAccess/SongBrowserModel.cs

@@ -494,7 +494,7 @@ namespace SongBrowserPlugin
                 return;
             }
 
-            this.CurrentEditingPlaylist.songs.RemoveAll(x => x.level.levelID == songInfo.levelID);
+            this.CurrentEditingPlaylist.songs.RemoveAll(x => x.level != null && x.level.levelID == songInfo.levelID);
             this.CurrentEditingPlaylistLevelIds.RemoveWhere(x => x == songInfo.levelID);
 
             this.CurrentEditingPlaylist.SavePlaylist();