Browse Source

fix #458: NullReferenceException when expanding the "Exposed By" analysis node

pull/469/merge
Siegfried Pammer 12 years ago
parent
commit
e064a2121b
  1. 3
      ILSpy/TreeNodes/Analyzer/AnalyzedTypeExposedByTreeNode.cs

3
ILSpy/TreeNodes/Analyzer/AnalyzedTypeExposedByTreeNode.cs

@ -128,7 +128,8 @@ namespace ICSharpCode.ILSpy.TreeNodes.Analyzer @@ -128,7 +128,8 @@ namespace ICSharpCode.ILSpy.TreeNodes.Analyzer
if (method.IsPrivate) {
if (!method.HasOverrides)
return false;
else if (!method.Overrides[0].DeclaringType.Resolve().IsInterface)
var typeDefinition = method.Overrides[0].DeclaringType.Resolve();
if (typeDefinition != null && !typeDefinition.IsInterface)
return false;
}

Loading…
Cancel
Save