mirror of
https://github.com/ppy/osu
synced 2025-01-18 12:00:58 +00:00
Fix nullref in tests
This commit is contained in:
parent
42442edf5a
commit
0faf83f7d1
@ -63,8 +63,11 @@ namespace osu.Game.Overlays.Direct
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
|
||||
beatmaps.BeatmapDownloadBegan -= attachDownload;
|
||||
beatmaps.ItemAdded -= setAdded;
|
||||
if (beatmaps != null)
|
||||
{
|
||||
beatmaps.BeatmapDownloadBegan -= attachDownload;
|
||||
beatmaps.ItemAdded -= setAdded;
|
||||
}
|
||||
|
||||
State.UnbindAll();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user