1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 23:42:55 +08:00

Merge pull request #8862 from iiSaLMaN/fix-potential-nullref

Fix null reference while hiding toolbar on tests
This commit is contained in:
Dean Herbert 2020-04-25 16:55:17 +09:00 committed by GitHub
commit febdb15d70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,7 +148,7 @@ namespace osu.Game.Overlays.Toolbar
protected override void PopOut() protected override void PopOut()
{ {
userButton?.StateContainer.Hide(); userButton.StateContainer?.Hide();
this.MoveToY(-DrawSize.Y, transition_time, Easing.OutQuint); this.MoveToY(-DrawSize.Y, transition_time, Easing.OutQuint);
this.FadeOut(transition_time); this.FadeOut(transition_time);