1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 03:42:57 +08:00

fix Possible NullReferenceException in test

This commit is contained in:
cdwcgt 2023-07-30 02:56:52 +09:00
parent 99dd156d53
commit 404a927caf
No known key found for this signature in database
GPG Key ID: 144396D01095C3A2

View File

@ -45,7 +45,7 @@ namespace osu.Game.Tournament.Tests.Components
private void success(APIBeatmap beatmap)
{
var ruleset = rulesets.GetRuleset(Ladder.Ruleset.Value.OnlineID);
var ruleset = rulesets.GetRuleset(Ladder.Ruleset.Value?.OnlineID ?? -1);
if (ruleset == null)
return;