Fix crash

This commit is contained in:
PercyDan54 2021-04-04 09:44:45 +08:00
parent 4603c81086
commit d4724f4494
No known key found for this signature in database
GPG Key ID: 6AEA7C525131BAF3
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ public MenuItem[] ContextMenuItems
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)