Bring jbevain/cecil's commit 1f6385763d04e69441e464c5d20e9b70cd8fa4fc, Custom attribu...
authorMiguel de Icaza <miguel@gnome.org>
Wed, 18 Apr 2012 22:38:20 +0000 (18:38 -0400)
committerMiguel de Icaza <miguel@gnome.org>
Wed, 18 Apr 2012 22:54:17 +0000 (18:54 -0400)
mcs/class/Mono.Cecil/Mono.Cecil/CustomAttribute.cs

index 310f7258910f9ff5572d5d894c93c2d4ee4592d8..76372db0ee2770cb6b75eebaf77a71a52810a5bc 100644 (file)
@@ -188,7 +188,7 @@ namespace Mono.Cecil {
                        if (blob != null)
                                return blob;
 
-                       if (!HasImage || signature == 0)
+                       if (!HasImage)
                                throw new NotSupportedException ();
 
                        return blob = Module.Read (this, (attribute, reader) => reader.ReadCustomAttributeBlob (attribute.signature));