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,
},