Allow null sequence arrays
This commit is contained in:
committed by
Matthias Mailänder
parent
7206a33d0d
commit
c19a7d338b
@@ -28,7 +28,7 @@ namespace OpenRA.Mods.Common.Lint
|
|||||||
return [(string)fieldInfo.GetValue(ruleInfo)];
|
return [(string)fieldInfo.GetValue(ruleInfo)];
|
||||||
|
|
||||||
if (typeof(IEnumerable<string>).IsAssignableFrom(type))
|
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))
|
if (type == typeof(BooleanExpression) || type == typeof(IntegerExpression))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user