mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 06:42:56 +08:00
Fix nullref when querying IsInSeason before request completion
This commit is contained in:
parent
d5dfd1dffe
commit
82ef85569b
@ -49,7 +49,7 @@ namespace osu.Game.Graphics.Backgrounds
|
|||||||
return new SeasonalBackground(url);
|
return new SeasonalBackground(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsInSeason => DateTimeOffset.Now < cachedResponse.Value.EndDate;
|
public bool IsInSeason => cachedResponse.Value != null && DateTimeOffset.Now < cachedResponse.Value.EndDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
[LongRunningLoad]
|
[LongRunningLoad]
|
||||||
|
Loading…
Reference in New Issue
Block a user