mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 09:20:02 +09:00
Fix nullref when querying IsInSeason before request completion
This commit is contained in:
@ -49,7 +49,7 @@ namespace osu.Game.Graphics.Backgrounds
|
||||
return new SeasonalBackground(url);
|
||||
}
|
||||
|
||||
public bool IsInSeason => DateTimeOffset.Now < cachedResponse.Value.EndDate;
|
||||
public bool IsInSeason => cachedResponse.Value != null && DateTimeOffset.Now < cachedResponse.Value.EndDate;
|
||||
}
|
||||
|
||||
[LongRunningLoad]
|
||||
|
Reference in New Issue
Block a user