From ee307fcda3f8eee7885136db2282547b83d83b78 Mon Sep 17 00:00:00 2001 From: biwa <6475593+biwa@users.noreply.github.com> Date: Thu, 9 Dec 2021 00:57:12 +0100 Subject: [PATCH] UDBScript: fixed a problem where using QueryOption resulted in an exception being thrown. Fixes #661 --- Source/Plugins/UDBScript/ScriptOption.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Plugins/UDBScript/ScriptOption.cs b/Source/Plugins/UDBScript/ScriptOption.cs index 4c38e354a..84f16e3f7 100644 --- a/Source/Plugins/UDBScript/ScriptOption.cs +++ b/Source/Plugins/UDBScript/ScriptOption.cs @@ -88,7 +88,7 @@ namespace CodeImp.DoomBuilder.UDBScript this.enumvalues = enumvalues; // If it's an enum try to get the default value from default value number - if(enumvalues.Count > 0) + if(enumvalues != null && enumvalues.Count > 0) { foreach (DictionaryEntry de in enumvalues) { -- GitLab