mirror of https://github.com/ppy/osu
fix Possible NullReferenceException in test
This commit is contained in:
parent
99dd156d53
commit
404a927caf
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue