Update code to support new inspectcode analysis rules

This commit is contained in:
Dean Herbert
2017-09-14 12:58:32 +09:00
parent 0ca60eaecc
commit b1145272d1
12 changed files with 23 additions and 12 deletions

View File

@ -26,7 +26,7 @@ namespace osu.Game.Users
private void load(TextureStore textures)
{
Texture texture = null;
if (user?.Id > 1) texture = textures.Get($@"https://a.ppy.sh/{user.Id}");
if (user != null && user.Id > 1) texture = textures.Get($@"https://a.ppy.sh/{user.Id}");
if (texture == null) texture = textures.Get(@"Online/avatar-guest");
Add(new Sprite