Browse Source

fix #227 and #229

pull/252/head
Siegfried Pammer 14 years ago
parent
commit
443a312901
  1. 2
      ILSpy/XmlDoc/XmlDocKeyProvider.cs

2
ILSpy/XmlDoc/XmlDocKeyProvider.cs

@ -169,6 +169,7 @@ namespace ICSharpCode.ILSpy.XmlDoc
} else { } else {
dotPos = key.LastIndexOf('.'); dotPos = key.LastIndexOf('.');
} }
if (dotPos < 0) return null;
TypeDefinition type = FindType(module, key.Substring(2, dotPos - 2)); TypeDefinition type = FindType(module, key.Substring(2, dotPos - 2));
if (type == null) if (type == null)
return null; return null;
@ -192,6 +193,7 @@ namespace ICSharpCode.ILSpy.XmlDoc
} else { } else {
ns = string.Empty; ns = string.Empty;
} }
if (string.IsNullOrEmpty(name)) return null;
TypeDefinition type = module.GetType(ns, name); TypeDefinition type = module.GetType(ns, name);
if (type == null && ns.Length > 0) { if (type == null && ns.Length > 0) {
// try if this is a nested type // try if this is a nested type

Loading…
Cancel
Save