Skip to content

Commit

Permalink
fix Possible NullReferenceException in test
Browse files Browse the repository at this point in the history
  • Loading branch information
cdwcgt committed Jul 29, 2023
1 parent 99dd156 commit 404a927
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 404a927

Please sign in to comment.