mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Fix potential null ref when no beatmap is selected
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user