Ensure an OnlineBeatmapID is present before attempting API requests

This commit is contained in:
Dean Herbert
2017-09-15 12:44:48 +09:00
parent a0bbabd18f
commit b72921b30e
2 changed files with 4 additions and 10 deletions

View File

@ -130,7 +130,7 @@ namespace osu.Game.Screens.Select.Leaderboards
Scores = null;
getScoresRequest?.Cancel();
if (api == null || Beatmap == null) return;
if (api == null || Beatmap?.OnlineBeatmapID == null) return;
loading.Show();