1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-19 16:20:14 +08:00

Protect against potential nullref when exiting player (#7330)

Protect against potential nullref when exiting player
This commit is contained in:
Dean Herbert
2019-12-24 03:20:54 +09:00
committed by GitHub
Unverified
+1 -1
View File
@@ -562,7 +562,7 @@ namespace osu.Game.Screens.Play
// GameplayClockContainer performs seeks / start / stop operations on the beatmap's track.
// as we are no longer the current screen, we cannot guarantee the track is still usable.
GameplayClockContainer.StopUsingBeatmapClock();
GameplayClockContainer?.StopUsingBeatmapClock();
fadeOut();
return base.OnExiting(next);