mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 12:33:01 +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)
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user