From c19a7d338be277f769351a949463ff17c9625052 Mon Sep 17 00:00:00 2001 From: Gustas <37534529+PunkPun@users.noreply.github.com> Date: Sat, 14 Jun 2025 14:17:17 +0300 Subject: [PATCH] Allow null sequence arrays --- OpenRA.Mods.Common/Lint/LintExts.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Lint/LintExts.cs b/OpenRA.Mods.Common/Lint/LintExts.cs index 7ed5c1bad3..1fa45a89b6 100644 --- a/OpenRA.Mods.Common/Lint/LintExts.cs +++ b/OpenRA.Mods.Common/Lint/LintExts.cs @@ -28,7 +28,7 @@ namespace OpenRA.Mods.Common.Lint return [(string)fieldInfo.GetValue(ruleInfo)]; if (typeof(IEnumerable).IsAssignableFrom(type)) - return fieldInfo.GetValue(ruleInfo) as IEnumerable; + return fieldInfo.GetValue(ruleInfo) as IEnumerable ?? []; if (type == typeof(BooleanExpression) || type == typeof(IntegerExpression)) {