Permalink
Browse files

fix #227 and #229

  • Loading branch information...
1 parent fe7fdec commit 443a312901521f0a31ffcb96aa503b10db110fb3 @siegfriedpammer siegfriedpammer committed Jun 26, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 ILSpy/XmlDoc/XmlDocKeyProvider.cs
@@ -169,6 +169,7 @@ static MemberReference FindMember(ModuleDefinition module, string key, Func<Type
} else {
dotPos = key.LastIndexOf('.');
}
+ if (dotPos < 0) return null;
TypeDefinition type = FindType(module, key.Substring(2, dotPos - 2));
if (type == null)
return null;
@@ -192,6 +193,7 @@ static TypeDefinition FindType(ModuleDefinition module, string name)
} else {
ns = string.Empty;
}
+ if (string.IsNullOrEmpty(name)) return null;
TypeDefinition type = module.GetType(ns, name);
if (type == null && ns.Length > 0) {
// try if this is a nested type

0 comments on commit 443a312

Please sign in to comment.