From 8a2e7f3f7409ddbbe423ad908f7728ec6a7149e4 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 25 Nov 2015 18:27:49 -0800 Subject: [PATCH] Fix ternary null input Having a ternary result in null creates a new param of []{ null }, instead of a true null. --- Misc/Util.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/Util.cs b/Misc/Util.cs index 7280fd095..9568d8d2e 100644 --- a/Misc/Util.cs +++ b/Misc/Util.cs @@ -450,7 +450,7 @@ internal static List getCBList(string textfile, string lang) internal static List getCBList(string[] inStrings, params int[][] allowed) { List cbList = new List(); - if (allowed == null) + if (allowed == null || allowed.First() == null) allowed = new[] { Enumerable.Range(0, inStrings.Length).ToArray() }; foreach (int[] list in allowed)