1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 16:02:58 +08:00

Add null check for safety

Co-Authored-By: Salman Ahmed <slmanarendo1950@gmail.com>
This commit is contained in:
Dean Herbert 2019-09-22 21:42:32 +09:00 committed by GitHub
parent fc1d49631a
commit e5b14ce74d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,7 +187,7 @@ namespace osu.Game.Screens.Menu
{
if (buttonsTopLevel.Any(b => e.PressedKeys.Contains(b.TriggerKey)))
{
logo.Click();
logo?.Click();
return true;
}
}