Fix nullref

This commit is contained in:
Dean Herbert 2019-04-03 18:46:08 +09:00
parent cb417ebd77
commit 84da708d44

View File

@ -125,7 +125,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
scoreTable.Scores = scores?.Count > 1 ? scores : new List<ScoreInfo>(); scoreTable.Scores = scores?.Count > 1 ? scores : new List<ScoreInfo>();
if (scores.Any()) if (scores?.Any() == true)
{ {
topScore.Score = scores.FirstOrDefault(); topScore.Score = scores.FirstOrDefault();
topScore.Show(); topScore.Show();