Add null check in SongSelect disposal for safety

This commit is contained in:
Dean Herbert 2020-09-15 14:34:58 +09:00
parent 75d0797cf8
commit 2c7492d717

View File

@ -642,7 +642,9 @@ namespace osu.Game.Screens.Select
base.Dispose(isDisposing);
decoupledRuleset.UnbindAll();
music.TrackChanged -= ensureTrackLooping;
if (music != null)
music.TrackChanged -= ensureTrackLooping;
}
/// <summary>