From 4a068f113e1c471d5148b072a5410fca7399d766 Mon Sep 17 00:00:00 2001 From: Flamefire Date: Sat, 13 Sep 2014 01:22:42 +0200 Subject: [PATCH] Fix missing null check --- Vocaluxe/Lib/Draw/CDrawBase.cs | 2 ++ 1 file changed, 2 insertions(+) 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;