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
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ private void load()
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;