diff options
author | Daniel Grunwald <daniel@danielgrunwald.de> | 2014-08-29 01:22:33 +0400 |
---|---|---|
committer | Daniel Grunwald <daniel@danielgrunwald.de> | 2014-08-29 01:22:45 +0400 |
commit | 9429712ebd1eaaa0c4ffbbf1458c2cceea04b6db (patch) | |
tree | b8144f788121337bfdee055f6d43267c800458a0 /ICSharpCode.NRefactory.Cecil | |
parent | ff0393ce92e1adf0365a357cbf9eb9c9a20bf845 (diff) |
Merge changes from SharpDevelop to NRefactory
Diffstat (limited to 'ICSharpCode.NRefactory.Cecil')
-rw-r--r-- | ICSharpCode.NRefactory.Cecil/CecilLoader.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ICSharpCode.NRefactory.Cecil/CecilLoader.cs b/ICSharpCode.NRefactory.Cecil/CecilLoader.cs index b8c4747f..29850ed3 100644 --- a/ICSharpCode.NRefactory.Cecil/CecilLoader.cs +++ b/ICSharpCode.NRefactory.Cecil/CecilLoader.cs @@ -825,7 +825,13 @@ namespace ICSharpCode.NRefactory.TypeSystem void AddSecurityAttributes(SecurityDeclaration secDecl, IList<IUnresolvedAttribute> targetCollection) { - var blobSecDecl = new UnresolvedSecurityDeclarationBlob((int)secDecl.Action, secDecl.GetBlob()); + byte[] blob; + try { + blob = secDecl.GetBlob(); + } catch (NotSupportedException) { + return; // https://github.com/icsharpcode/SharpDevelop/issues/284 + } + var blobSecDecl = new UnresolvedSecurityDeclarationBlob((int)secDecl.Action, blob); targetCollection.AddRange(blobSecDecl.UnresolvedAttributes); } #endregion |