Browse Source

Attempt to fix NullReferenceException in ILSpySymbolSource.GetLocalVariables().

pull/403/head
Daniel Grunwald 11 years ago
parent
commit
cc04f8f59b
  1. 2
      src/AddIns/DisplayBindings/ILSpyAddIn/ILSpySymbolSource.cs

2
src/AddIns/DisplayBindings/ILSpyAddIn/ILSpySymbolSource.cs

@ -102,7 +102,7 @@ namespace ICSharpCode.ILSpyAddIn @@ -102,7 +102,7 @@ namespace ICSharpCode.ILSpyAddIn
var context = new SimpleTypeResolveContext(method);
var loader = new CecilLoader();
return symbols.LocalVariables.Select(
return symbols.LocalVariables.Where(v => v.OriginalVariable != null).Select(
v => new Debugger.ILLocalVariable() {
Index = v.OriginalVariable.Index,
Type = loader.ReadTypeReference(v.Type).Resolve(context),

Loading…
Cancel
Save