1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-27 03:31:23 +08:00

Fix potential null reference while hiding toolbar

This commit is contained in:
Salman Ahmed
2020-04-25 09:45:11 +03:00
Unverified
parent fc706c19d7
commit 37cc1ed5a2
+1 -1
View File
@@ -148,7 +148,7 @@ namespace osu.Game.Overlays.Toolbar
protected override void PopOut()
{
userButton?.StateContainer.Hide();
userButton.StateContainer?.Hide();
this.MoveToY(-DrawSize.Y, transition_time, Easing.OutQuint);
this.FadeOut(transition_time);