fix possible NullRef

This commit is contained in:
Aergwyn 2017-12-03 14:15:08 +01:00
parent a1dbd7916b
commit 0c9ebcd58c

View File

@ -150,7 +150,7 @@ namespace osu.Game.Overlays.Music
{
beatmapBacking.Value = beatmaps.GetWorkingBeatmap(info, beatmapBacking);
if (BeatmapSets.Count() == 1)
if (BeatmapSets?.Count() == 1)
beatmapBacking.Value.Track.Looping = true;
else
beatmapBacking.Value.Track.Looping = false;