From aaf3ad805c18e1e34cf51c4485d33b05882241e8 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 6 Feb 2023 19:31:45 +0900 Subject: [PATCH] Fix potential nullref in tests --- osu.Game/Screens/Play/Player.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Screens/Play/Player.cs b/osu.Game/Screens/Play/Player.cs index 37b3f906eb..6dc4854e80 100644 --- a/osu.Game/Screens/Play/Player.cs +++ b/osu.Game/Screens/Play/Player.cs @@ -1076,7 +1076,7 @@ namespace osu.Game.Screens.Play // Eagerly clean these up as disposal of child components is asynchronous and may leave sounds playing beyond user expectations. failAnimationLayer?.Stop(); - PauseOverlay.StopAllSamples(); + PauseOverlay?.StopAllSamples(); if (LoadedBeatmapSuccessfully) {