mirror of
https://github.com/ppy/osu
synced 2024-12-15 11:25:29 +00:00
Only parse statistics when not null
This commit is contained in:
parent
1ce6a5ceb3
commit
e2591f154b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user