1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-09 21:34:36 +08:00

Fix potential null ref when no beatmap is selected

This commit is contained in:
Dean Herbert
2021-06-14 15:06:24 +09:00
Unverified
parent b06477a1f5
commit 83402a70db
@@ -111,7 +111,7 @@ namespace osu.Game.Screens.Select.Leaderboards
if (score.NewValue.TryGetTarget(out var scoreInfo))
{
if (Beatmap.ID != scoreInfo.BeatmapInfoID)
if (Beatmap?.ID != scoreInfo.BeatmapInfoID)
return;
}