Add safety against performing operation on non-alive foundContent

This commit is contained in:
Bartłomiej Dach
2022-01-03 20:02:46 +01:00
parent 586f158920
commit de33b420ab

View File

@ -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();