Allow null sequence arrays

This commit is contained in:
Gustas
2025-06-14 14:17:17 +03:00
committed by Matthias Mailänder
parent 7206a33d0d
commit c19a7d338b

View File

@@ -28,7 +28,7 @@ namespace OpenRA.Mods.Common.Lint
return [(string)fieldInfo.GetValue(ruleInfo)];
if (typeof(IEnumerable<string>).IsAssignableFrom(type))
return fieldInfo.GetValue(ruleInfo) as IEnumerable<string>;
return fieldInfo.GetValue(ruleInfo) as IEnumerable<string> ?? [];
if (type == typeof(BooleanExpression) || type == typeof(IntegerExpression))
{