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)) {