1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:47:24 +08:00

Possible null reference exception

This commit is contained in:
DrabWeb 2017-04-29 06:36:06 -03:00
parent 067b572245
commit 9bdf462dd1

View File

@ -185,9 +185,9 @@ namespace osu.Game.Overlays
return;
}
if (current?.Track?.IsRunning ?? false)
current.Track.Stop();
current?.Track?.Stop();
else
current.Track.Start();
current?.Track?.Start();
},
Icon = FontAwesome.fa_play_circle_o,
},