Fix crash on random selection from a previously null selection

This commit is contained in:
Dean Herbert 2017-09-01 18:44:51 +09:00
parent 2742fe46cf
commit 3ede685ee9
1 changed files with 2 additions and 1 deletions

View File

@ -191,7 +191,8 @@ public void SelectNextRandom()
if (!visibleGroups.Any())
return;
randomSelectedBeatmaps.Push(new KeyValuePair<BeatmapGroup, BeatmapPanel>(selectedGroup, selectedGroup.SelectedPanel));
if (selectedGroup != null)
randomSelectedBeatmaps.Push(new KeyValuePair<BeatmapGroup, BeatmapPanel>(selectedGroup, selectedGroup.SelectedPanel));
BeatmapGroup group;