Browse Source

Do not try find maps of empty types.

pull/1/head
triton 13 years ago
parent
commit
e5586780fb
  1. 6
      src/Generator/Types/TypeMap.cs

6
src/Generator/Types/TypeMap.cs

@ -164,6 +164,12 @@ namespace Cxxi.Types
public bool FindTypeMap(string name, out TypeMap typeMap) public bool FindTypeMap(string name, out TypeMap typeMap)
{ {
if (string.IsNullOrWhiteSpace(name))
{
typeMap = null;
return false;
}
System.Type type; System.Type type;
TypeMaps.TryGetValue(name, out type); TypeMaps.TryGetValue(name, out type);

Loading…
Cancel
Save