mirror of
https://github.com/ppy/osu
synced 2024-12-17 04:15:37 +00:00
Fix nullref
This commit is contained in:
parent
cb417ebd77
commit
84da708d44
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user