Fix linter crashing on null actor array references
This commit is contained in:
committed by
Matthias Mailänder
parent
edbded8f0a
commit
ed395c8ace
@@ -57,6 +57,9 @@ namespace OpenRA.Mods.Common.Lint
|
||||
FieldInfo fieldInfo, IReadOnlyDictionary<string, ActorInfo> dict, ActorReferenceAttribute attribute)
|
||||
{
|
||||
var values = LintExts.GetFieldValues(traitInfo, fieldInfo, attribute.DictionaryReference);
|
||||
if (values == null)
|
||||
return;
|
||||
|
||||
foreach (var value in values)
|
||||
{
|
||||
if (value == null)
|
||||
|
||||
Reference in New Issue
Block a user