Skip to content

Commit

Permalink
Custom attributes with a null blob are allowed now
Browse files Browse the repository at this point in the history
  • Loading branch information
jbevain committed Nov 7, 2011
1 parent 31e34e3 commit 1f63857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mono.Cecil/CustomAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public byte [] GetBlob ()
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));
Expand Down

0 comments on commit 1f63857

Please sign in to comment.