1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-30 19:18:00 +08:00

Merge pull request #12285 from PercyDan54/fix-score-crash

Fix crash when right clicking online score
This commit is contained in:
Dean Herbert
2021-04-04 15:00:05 +09:00
committed by GitHub
Unverified
@@ -391,7 +391,7 @@ namespace osu.Game.Online.Leaderboards
if (score.Mods.Length > 0 && modsContainer.Any(s => s.IsHovered) && songSelect != null)
items.Add(new OsuMenuItem("Use these mods", MenuItemType.Highlighted, () => songSelect.Mods.Value = score.Mods));
if (score.Files.Count > 0)
if (score.Files?.Count > 0)
items.Add(new OsuMenuItem("Export", MenuItemType.Standard, () => scoreManager.Export(score)));
if (score.ID != 0)