From 4183c9cbc51a869711f709b1cfef832e14ab4943 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Fri, 29 May 2015 10:07:36 -0400 Subject: [PATCH] [corlib] Avoid a nullref in CustomAttributeData.ToString () if its called without calling ConstructorArguments/NamedArguments. --- mcs/class/corlib/System.Reflection/CustomAttributeData.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mcs/class/corlib/System.Reflection/CustomAttributeData.cs b/mcs/class/corlib/System.Reflection/CustomAttributeData.cs index 035c08b02aa..d884714401b 100644 --- a/mcs/class/corlib/System.Reflection/CustomAttributeData.cs +++ b/mcs/class/corlib/System.Reflection/CustomAttributeData.cs @@ -137,6 +137,8 @@ namespace System.Reflection { public override string ToString () { + ResolveArguments (); + StringBuilder sb = new StringBuilder (); sb.Append ("[" + ctorInfo.DeclaringType.FullName + "("); -- 2.25.1