Browse Source

Fix NRE in ApplyAttributeTypeVisitor.VisitTypeDefinition()

pull/1425/head
Daniel Grunwald 7 years ago
parent
commit
166b7def24
  1. 2
      ICSharpCode.Decompiler/TypeSystem/ApplyAttributeTypeVisitor.cs

2
ICSharpCode.Decompiler/TypeSystem/ApplyAttributeTypeVisitor.cs

@ -235,7 +235,7 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -235,7 +235,7 @@ namespace ICSharpCode.Decompiler.TypeSystem
if (type.KnownTypeCode == KnownTypeCode.Object && hasDynamicAttribute) {
if (dynamicAttributeData == null || dynamicTypeIndex >= dynamicAttributeData.Length)
newType = SpecialType.Dynamic;
if (dynamicAttributeData[dynamicTypeIndex])
else if (dynamicAttributeData[dynamicTypeIndex])
newType = SpecialType.Dynamic;
}
Nullability nullability = GetNullability();

Loading…
Cancel
Save