From e314913aeb0f509b526198af5871ea49269c5952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Wed, 27 Sep 2023 11:18:38 +0200 Subject: [PATCH] Handle null texture case --- osu.Game/Storyboards/Drawables/DrawableStoryboardSprite.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Storyboards/Drawables/DrawableStoryboardSprite.cs b/osu.Game/Storyboards/Drawables/DrawableStoryboardSprite.cs index 68892a6fc1..ec875219b6 100644 --- a/osu.Game/Storyboards/Drawables/DrawableStoryboardSprite.cs +++ b/osu.Game/Storyboards/Drawables/DrawableStoryboardSprite.cs @@ -110,7 +110,7 @@ namespace osu.Game.Storyboards.Drawables // Setting texture will only update the size if it's zero. // So let's force an explicit update. - Size = new Vector2(Texture.DisplayWidth, Texture.DisplayHeight); + Size = new Vector2(Texture?.DisplayWidth ?? 0, Texture?.DisplayHeight ?? 0); } protected override void Dispose(bool isDisposing)