提交 072a7aa9 编写于 作者: R Radek Doulik

[linker] do not try to iterate thru null array

 - fixes the case when custom attribute instance constructor contains
   null value for System.Type[] array
上级 475d0029
......@@ -336,6 +336,9 @@ namespace Mono.Linker.Steps {
return;
MarkType (et);
if (argument.Value == null)
return;
foreach (var cac in (CustomAttributeArgument[]) argument.Value)
MarkWithResolvedScope ((TypeReference) cac.Value);
} else if (at.Namespace == "System" && at.Name == "Type") {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册