mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Add missing null checks
This commit is contained in:
@ -143,6 +143,9 @@ namespace osu.Game.Overlays
|
|||||||
switch (request)
|
switch (request)
|
||||||
{
|
{
|
||||||
case GetUserRankingsRequest userRequest:
|
case GetUserRankingsRequest userRequest:
|
||||||
|
if (userRequest.Response == null)
|
||||||
|
return null;
|
||||||
|
|
||||||
switch (userRequest.Type)
|
switch (userRequest.Type)
|
||||||
{
|
{
|
||||||
case UserRankingsType.Performance:
|
case UserRankingsType.Performance:
|
||||||
@ -155,7 +158,12 @@ namespace osu.Game.Overlays
|
|||||||
return null;
|
return null;
|
||||||
|
|
||||||
case GetCountryRankingsRequest countryRequest:
|
case GetCountryRankingsRequest countryRequest:
|
||||||
|
{
|
||||||
|
if (countryRequest.Response == null)
|
||||||
|
return null;
|
||||||
|
|
||||||
return new CountriesTable(1, countryRequest.Response.Countries);
|
return new CountriesTable(1, countryRequest.Response.Countries);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
Reference in New Issue
Block a user