1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 09:22:54 +08:00

Merge pull request #1129 from peppy/fix-nullref

FIx a possible null reference when login fails
This commit is contained in:
Dean Herbert 2017-08-18 12:48:38 +09:00 committed by GitHub
commit 7f6b7e2937

View File

@ -171,7 +171,7 @@ namespace osu.Game.Overlays.Settings.Sections.General
break;
}
if (form != null) GetContainingInputManager().ChangeFocus(form);
if (form != null) GetContainingInputManager()?.ChangeFocus(form);
}
public override bool AcceptsFocus => true;