mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 14:17:26 +08:00
Add safety against performing operation on non-alive foundContent
This commit is contained in:
parent
586f158920
commit
de33b420ab
@ -223,7 +223,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
private void onCardSizeChanged()
|
||||
{
|
||||
if (foundContent == null || !foundContent.Any())
|
||||
if (foundContent?.IsAlive != true || !foundContent.Any())
|
||||
return;
|
||||
|
||||
Loading.Show();
|
||||
|
Loading…
Reference in New Issue
Block a user