Fix nullref during room creation (#4228)

This commit is contained in:
Dan Balasescu
2019-02-08 17:53:01 +09:00
committed by Dean Herbert
parent 959b1ac845
commit 7ec0b4ba77

View File

@ -55,6 +55,9 @@ namespace osu.Game.Screens.Multi.Match.Components
private void beatmapAdded(BeatmapSetInfo model, bool existing, bool silent)
{
if (Beatmap.Value == null)
return;
if (model.Beatmaps.Any(b => b.OnlineBeatmapID == Beatmap.Value.OnlineBeatmapID))
Schedule(() => hasBeatmap = true);
}