Fix nullref in tests as initialBeatmap may be null

This commit is contained in:
Dean Herbert
2022-08-17 14:48:00 +09:00
parent 8b5ac55fca
commit 21b364cd77

View File

@ -278,7 +278,7 @@ namespace osu.Game.Screens.Menu
if (!UsingThemedIntro)
{
initialBeatmap.PrepareTrackForPreview(false);
initialBeatmap?.PrepareTrackForPreview(false);
drawableTrack.VolumeTo(0);
drawableTrack.Restart();