1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 06:52:55 +08:00

Merge pull request #26662 from peppy/fix-player-crash

Fix potential null reference in player screen transition handling
This commit is contained in:
Bartłomiej Dach 2024-01-22 11:07:16 +01:00 committed by GitHub
commit b7f0102461
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1240,9 +1240,14 @@ namespace osu.Game.Screens.Play
{
b.IgnoreUserSettings.Value = true;
b.IsBreakTime.UnbindFrom(breakTracker.IsBreakTime);
b.IsBreakTime.Value = false;
// May be null if the load never completed.
if (breakTracker != null)
{
b.IsBreakTime.UnbindFrom(breakTracker.IsBreakTime);
b.IsBreakTime.Value = false;
}
});
storyboardReplacesBackground.Value = false;
}
}