Fix nullref on disposing BeatmapSetOverlay before load

Only affects VisualTests
This commit is contained in:
Dean Herbert 2017-11-23 17:33:46 +09:00
parent b0b3c9167e
commit cf4fc05be3

View File

@ -232,7 +232,7 @@ namespace osu.Game.Overlays.BeatmapSet
protected override void Dispose(bool isDisposing) protected override void Dispose(bool isDisposing)
{ {
base.Dispose(isDisposing); base.Dispose(isDisposing);
beatmaps.BeatmapSetAdded -= handleBeatmapAdd; if (beatmaps != null) beatmaps.BeatmapSetAdded -= handleBeatmapAdd;
} }
private void handleBeatmapAdd(BeatmapSetInfo beatmap) private void handleBeatmapAdd(BeatmapSetInfo beatmap)