{"action":"created","issue":{"url":"https://api.github.com/repos/icsharpcode/ILSpy/issues/993","repository_url":"https://api.github.com/repos/icsharpcode/ILSpy","labels_url":"https://api.github.com/repos/icsharpcode/ILSpy/issues/993/labels{/name}","comments_url":"https://api.github.com/repos/icsharpcode/ILSpy/issues/993/comments","events_url":"https://api.github.com/repos/icsharpcode/ILSpy/issues/993/events","html_url":"https://github.com/icsharpcode/ILSpy/issues/993","id":277316740,"node_id":"MDU6SXNzdWUyNzczMTY3NDA=","number":993,"title":"Decompiler should not crash when decompiling a reference assembly","user":{"login":"siegfriedpammer","id":344204,"node_id":"MDQ6VXNlcjM0NDIwNA==","avatar_url":"https://avatars3.githubusercontent.com/u/344204?v=4","gravatar_id":"","url":"https://api.github.com/users/siegfriedpammer","html_url":"https://github.com/siegfriedpammer","followers_url":"https://api.github.com/users/siegfriedpammer/followers","following_url":"https://api.github.com/users/siegfriedpammer/following{/other_user}","gists_url":"https://api.github.com/users/siegfriedpammer/gists{/gist_id}","starred_url":"https://api.github.com/users/siegfriedpammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siegfriedpammer/subscriptions","organizations_url":"https://api.github.com/users/siegfriedpammer/orgs","repos_url":"https://api.github.com/users/siegfriedpammer/repos","events_url":"https://api.github.com/users/siegfriedpammer/events{/privacy}","received_events_url":"https://api.github.com/users/siegfriedpammer/received_events","type":"User","site_admin":false},"labels":[{"id":107903,"node_id":"MDU6TGFiZWwxMDc5MDM=","url":"https://api.github.com/repos/icsharpcode/ILSpy/labels/Bug","name":"Bug","color":"e10c02","default":false},{"id":90501092,"node_id":"MDU6TGFiZWw5MDUwMTA5Mg==","url":"https://api.github.com/repos/icsharpcode/ILSpy/labels/Decompiler","name":"Decompiler","color":"007FFF","default":false}],"state":"closed","locked":false,"assignee":{"login":"dgrunwald","id":243140,"node_id":"MDQ6VXNlcjI0MzE0MA==","avatar_url":"https://avatars3.githubusercontent.com/u/243140?v=4","gravatar_id":"","url":"https://api.github.com/users/dgrunwald","html_url":"https://github.com/dgrunwald","followers_url":"https://api.github.com/users/dgrunwald/followers","following_url":"https://api.github.com/users/dgrunwald/following{/other_user}","gists_url":"https://api.github.com/users/dgrunwald/gists{/gist_id}","starred_url":"https://api.github.com/users/dgrunwald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgrunwald/subscriptions","organizations_url":"https://api.github.com/users/dgrunwald/orgs","repos_url":"https://api.github.com/users/dgrunwald/repos","events_url":"https://api.github.com/users/dgrunwald/events{/privacy}","received_events_url":"https://api.github.com/users/dgrunwald/received_events","type":"User","site_admin":false},"assignees":[{"login":"dgrunwald","id":243140,"node_id":"MDQ6VXNlcjI0MzE0MA==","avatar_url":"https://avatars3.githubusercontent.com/u/243140?v=4","gravatar_id":"","url":"https://api.github.com/users/dgrunwald","html_url":"https://github.com/dgrunwald","followers_url":"https://api.github.com/users/dgrunwald/followers","following_url":"https://api.github.com/users/dgrunwald/following{/other_user}","gists_url":"https://api.github.com/users/dgrunwald/gists{/gist_id}","starred_url":"https://api.github.com/users/dgrunwald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgrunwald/subscriptions","organizations_url":"https://api.github.com/users/dgrunwald/orgs","repos_url":"https://api.github.com/users/dgrunwald/repos","events_url":"https://api.github.com/users/dgrunwald/events{/privacy}","received_events_url":"https://api.github.com/users/dgrunwald/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/icsharpcode/ILSpy/milestones/5","html_url":"https://github.com/icsharpcode/ILSpy/milestone/5","labels_url":"https://api.github.com/repos/icsharpcode/ILSpy/milestones/5/labels","id":1011092,"node_id":"MDk6TWlsZXN0b25lMTAxMTA5Mg==","number":5,"title":"3.0","description":"Major version with new decompiler engine based on NRefactory 5 TypeSystem","creator":{"login":"siegfriedpammer","id":344204,"node_id":"MDQ6VXNlcjM0NDIwNA==","avatar_url":"https://avatars3.githubusercontent.com/u/344204?v=4","gravatar_id":"","url":"https://api.github.com/users/siegfriedpammer","html_url":"https://github.com/siegfriedpammer","followers_url":"https://api.github.com/users/siegfriedpammer/followers","following_url":"https://api.github.com/users/siegfriedpammer/following{/other_user}","gists_url":"https://api.github.com/users/siegfriedpammer/gists{/gist_id}","starred_url":"https://api.github.com/users/siegfriedpammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siegfriedpammer/subscriptions","organizations_url":"https://api.github.com/users/siegfriedpammer/orgs","repos_url":"https://api.github.com/users/siegfriedpammer/repos","events_url":"https://api.github.com/users/siegfriedpammer/events{/privacy}","received_events_url":"https://api.github.com/users/siegfriedpammer/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":183,"state":"closed","created_at":"2015-03-08T07:38:38Z","updated_at":"2017-12-18T22:59:28Z","due_on":null,"closed_at":"2017-12-18T22:59:28Z"},"comments":2,"created_at":"2017-11-28T09:40:34Z","updated_at":"2018-09-28T09:45:13Z","closed_at":"2017-12-10T14:57:10Z","author_association":"MEMBER","body":"The decompiler engine should not crash when dealing with a reference assembly:\r\nFile: `C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\mscorlib.dll`\r\n\r\n```\r\nSystem.ArgumentNullException: Value cannot be null.\r\nParameter name: key\r\n   at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)\r\n   at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)\r\n   at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)\r\n   at ICSharpCode.Decompiler.FlowAnalysis.DataFlowVisitor`1.GetBlockInputState(Block block) in C:\\Users\\Siegfried\\Projects\\ILSpy\\ICSharpCode.Decompiler\\FlowAnalysis\\DataFlowVisitor.cs:line 346\r\n   at ICSharpCode.Decompiler.FlowAnalysis.DataFlowVisitor`1.VisitBlockContainer(BlockContainer container) in C:\\Users\\Siegfried\\Projects\\ILSpy\\ICSharpCode.Decompiler\\FlowAnalysis\\DataFlowVisitor.cs:line 367\r\n   at ICSharpCode.Decompiler.IL.BlockContainer.AcceptVisitor(ILVisitor visitor) in C:\\Users\\Siegfried\\Projects\\ILSpy\\ICSharpCode.Decompiler\\IL\\Instructions.cs:line 657\r\n   at ICSharpCode.Decompiler.IL.Transforms.SplitVariables.Run(ILFunction function, ILTransformContext context) in C:\\Users\\Siegfried\\Projects\\ILSpy\\ICSharpCode.Decompiler\\IL\\Transforms\\SplitVariables.cs:line 35\r\n   at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DecompileBody(MethodDefinition methodDefinition, IMethod method, EntityDeclaration entityDecl, ITypeResolveContext decompilationContext) in C:\\Users\\Siegfried\\Projects\\ILSpy\\ICSharpCode.Decompiler\\CSharp\\CSharpDecompiler.cs:line 761\r\n   at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DoDecompile(MethodDefinition methodDefinition, IMethod method, ITypeResolveContext decompilationContext) in C:\\Users\\Siegfried\\Projects\\ILSpy\\ICSharpCode.Decompiler\\CSharp\\CSharpDecompiler.cs:line 728\r\n   at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DoDecompile(ITypeDefinition typeDef, ITypeResolveContext decompilationContext) in C:\\Users\\Siegfried\\Projects\\ILSpy\\ICSharpCode.Decompiler\\CSharp\\CSharpDecompiler.cs:line 660\r\n   at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.Decompile(IList`1 definitions) in C:\\Users\\Siegfried\\Projects\\ILSpy\\ICSharpCode.Decompiler\\CSharp\\CSharpDecompiler.cs:line 471\r\n   at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.Decompile(IMemberDefinition[] definitions) in C:\\Users\\Siegfried\\Projects\\ILSpy\\ICSharpCode.Decompiler\\CSharp\\CSharpDecompiler.cs:line 446\r\n   at ICSharpCode.ILSpy.CSharpLanguage.DecompileType(TypeDefinition type, ITextOutput output, DecompilationOptions options) in C:\\Users\\Siegfried\\Projects\\ILSpy\\ILSpy\\Languages\\CSharpLanguage.cs:line 252\r\n   at ICSharpCode.ILSpy.TreeNodes.TypeTreeNode.Decompile(Language language, ITextOutput output, DecompilationOptions options) in C:\\Users\\Siegfried\\Projects\\ILSpy\\ILSpy\\TreeNodes\\TypeTreeNode.cs:line 108\r\n   at ICSharpCode.ILSpy.TextView.DecompilerTextView.DecompileNodes(DecompilationContext context, ITextOutput textOutput) in C:\\Users\\Siegfried\\Projects\\ILSpy\\ILSpy\\TextView\\DecompilerTextView.cs:line 534\r\n   at ICSharpCode.ILSpy.TextView.DecompilerTextView.<>c__DisplayClass33_0.<DecompileAsync>b__0() in C:\\Users\\Siegfried\\Projects\\ILSpy\\ILSpy\\TextView\\DecompilerTextView.cs:line 513\r\n```"},"comment":{"url":"https://api.github.com/repos/icsharpcode/ILSpy/issues/comments/425383047","html_url":"https://github.com/icsharpcode/ILSpy/issues/993#issuecomment-425383047","issue_url":"https://api.github.com/repos/icsharpcode/ILSpy/issues/993","id":425383047,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTM4MzA0Nw==","user":{"login":"riQQ","id":3404787,"node_id":"MDQ6VXNlcjM0MDQ3ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/3404787?v=4","gravatar_id":"","url":"https://api.github.com/users/riQQ","html_url":"https://github.com/riQQ","followers_url":"https://api.github.com/users/riQQ/followers","following_url":"https://api.github.com/users/riQQ/following{/other_user}","gists_url":"https://api.github.com/users/riQQ/gists{/gist_id}","starred_url":"https://api.github.com/users/riQQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riQQ/subscriptions","organizations_url":"https://api.github.com/users/riQQ/orgs","repos_url":"https://api.github.com/users/riQQ/repos","events_url":"https://api.github.com/users/riQQ/events{/privacy}","received_events_url":"https://api.github.com/users/riQQ/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T09:45:13Z","updated_at":"2018-09-28T09:45:13Z","author_association":"NONE","body":"http://zuga.net/articles/dotnet-what-are-reference-assemblies/"}}
{"actor":{"display_login":"riQQ"}}