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

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);