Merge pull request #10160 from peppy/ss-dispose-null-check

Add null check in SongSelect disposal for safety
This commit is contained in:
Dan Balasescu 2020-09-15 15:06:17 +09:00 committed by GitHub
commit 3e1c517700
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -642,7 +642,9 @@ protected override void Dispose(bool isDisposing)
base.Dispose(isDisposing);
decoupledRuleset.UnbindAll();
music.TrackChanged -= ensureTrackLooping;
if (music != null)
music.TrackChanged -= ensureTrackLooping;
}
/// <summary>