1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-28 13:45:10 +08:00

Fix possible nullref

This commit is contained in:
Andrei Zavatski 2020-02-13 14:11:53 +03:00
parent 2324296bf4
commit f05c1de4c1

View File

@ -135,6 +135,9 @@ namespace osu.Game.Overlays
private void loadNewContent() private void loadNewContent()
{ {
if (ruleset.Value == null)
return;
loading.Show(); loading.Show();
cancellationToken?.Cancel(); cancellationToken?.Cancel();