[corlib] Avoid a nullref in CustomAttributeData.ToString () if its called without...
authorZoltan Varga <vargaz@gmail.com>
Fri, 29 May 2015 14:07:36 +0000 (10:07 -0400)
committerZoltan Varga <vargaz@gmail.com>
Fri, 29 May 2015 14:07:41 +0000 (10:07 -0400)
mcs/class/corlib/System.Reflection/CustomAttributeData.cs

index 035c08b02aace9c8f2454174f9b73fa81e952754..d884714401b27c3fcad2e58eacdde330a594f1aa 100644 (file)
@@ -137,6 +137,8 @@ namespace System.Reflection {
 
                public override string ToString ()
                {
+                       ResolveArguments ();
+
                        StringBuilder sb = new StringBuilder ();
 
                        sb.Append ("[" + ctorInfo.DeclaringType.FullName + "(");