1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

Test for null before loading

This commit is contained in:
smoogipoo 2018-12-22 17:54:04 +09:00
parent d9b8df1595
commit 0757beb3b8

View File

@ -42,6 +42,10 @@ namespace osu.Game.Overlays.AccountCreation
private void load(OsuColour colours, APIAccess api, OsuGame game, TextureStore textures) private void load(OsuColour colours, APIAccess api, OsuGame game, TextureStore textures)
{ {
this.api = api; this.api = api;
if (string.IsNullOrEmpty(api.ProvidedUsername))
return;
Children = new Drawable[] Children = new Drawable[]
{ {
new Sprite new Sprite