Fix results screen crashing for beatmaps with no online ID

This commit is contained in:
Shane Woolcock 2020-06-03 10:43:16 +09:30
parent a3e31adbf9
commit f4f84ede6a

View File

@ -140,6 +140,8 @@ namespace osu.Game.Screens.Ranking
{
base.LoadComplete();
if (Score.Beatmap.OnlineBeatmapID != null)
{
var req = FetchScores(scores => Schedule(() =>
{
foreach (var s in scores)
@ -149,6 +151,7 @@ namespace osu.Game.Screens.Ranking
if (req != null)
api.Queue(req);
}
}
/// <summary>
/// Performs a fetch/refresh of scores to be displayed.