icsharpcode/ILSpy — Issue #318: Exception in decompile finalizer
Author: RKlier
Created: 2012-02-29 09:43:43+00:00
State: open

Commit 11520fd4df21c615207df0d9183deaa94bb3b415 introduced an expection while decompiling the Finalize method of classes:

>System.ArgumentNullException: Value cannot be null.
>Parameter name: key
> at System.Collections.Generic.Dictionary\`2.Insert(TKey key, TValue value, Boolean add)
> at System.Collections.Generic.Dictionary\`2.set_Item(TKey key, TValue value)
> at ICSharpCode.ILSpy.TextView.DefinitionLookup.AddDefinition(Object definition, Int32 offset) in n:\GIT\ILSpy\ILSpy\TextView\AvalonEditTextOutput.cs:line 61
> at ICSharpCode.ILSpy.TextView.AvalonEditTextOutput.WriteDefinition(String text, Object definition, Boolean isLocal) in n:\GIT\ILSpy\ILSpy\TextView\AvalonEditTextOutput.cs:line 213
> at ICSharpCode.Decompiler.Ast.TextOutputFormatter.StartNode(AstNode node) in n:\GIT\ILSpy\ICSharpCode.Decompiler\Ast\TextOutputFormatter.cs:line 286