1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:07:25 +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
parent b06477a1f5
commit 83402a70db

View File

@ -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;
}