mirror of
https://github.com/ppy/osu
synced 2025-01-27 08:13:06 +00:00
Ignore possible null in GetResponseString()
A null there indicates a deserialisation error and therefore due to the catch block immediately succeeding the changed line everything will continue to work as intended.
This commit is contained in:
parent
628e7a71ed
commit
5b2b701915
@ -270,7 +270,7 @@ namespace osu.Game.Online.API
|
||||
{
|
||||
try
|
||||
{
|
||||
return JObject.Parse(req.GetResponseString()).SelectToken("form_error", true).AsNonNull().ToObject<RegistrationRequest.RegistrationRequestErrors>();
|
||||
return JObject.Parse(req.GetResponseString().AsNonNull()).SelectToken("form_error", true).AsNonNull().ToObject<RegistrationRequest.RegistrationRequestErrors>();
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user