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:
parent
99dd156d53
commit
404a927caf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user