Only parse statistics when not null

This commit is contained in:
Dean Herbert 2019-12-03 16:16:27 +09:00
parent 1ce6a5ceb3
commit e2591f154b

View File

@ -40,6 +40,8 @@ namespace osu.Game.Online.API.Requests.Responses
Mods = mods,
};
if (Statistics != null)
{
foreach (var kvp in Statistics)
{
switch (kvp.Key)
@ -69,6 +71,7 @@ namespace osu.Game.Online.API.Requests.Responses
break;
}
}
}
return scoreInfo;
}