mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 07:33:20 +08:00
Test for null before loading
This commit is contained in:
parent
d9b8df1595
commit
0757beb3b8
@ -42,6 +42,10 @@ namespace osu.Game.Overlays.AccountCreation
|
||||
private void load(OsuColour colours, APIAccess api, OsuGame game, TextureStore textures)
|
||||
{
|
||||
this.api = api;
|
||||
|
||||
if (string.IsNullOrEmpty(api.ProvidedUsername))
|
||||
return;
|
||||
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new Sprite
|
||||
|
Loading…
Reference in New Issue
Block a user