diff --git a/Vocaluxe/Lib/Draw/CDrawBase.cs b/Vocaluxe/Lib/Draw/CDrawBase.cs index c1b7505a..4ecc9dae 100644 --- a/Vocaluxe/Lib/Draw/CDrawBase.cs +++ b/Vocaluxe/Lib/Draw/CDrawBase.cs @@ -303,6 +303,8 @@ namespace Vocaluxe.Lib.Draw protected TTextureType _GetTexture(CTexture textureRef) { + if (textureRef == null) + return null; TTextureType texture; _Textures.TryGetValue(textureRef.ID, out texture); return texture;