diff options
-rw-r--r-- | reflect/Reader/TypeDefImpl.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/reflect/Reader/TypeDefImpl.cs b/reflect/Reader/TypeDefImpl.cs index 4dc8030c..61880851 100644 --- a/reflect/Reader/TypeDefImpl.cs +++ b/reflect/Reader/TypeDefImpl.cs @@ -41,7 +41,8 @@ namespace IKVM.Reflection.Reader { this.module = module; this.index = index; - this.typeName = module.GetString(module.TypeDef.records[index].TypeName); + // empty typeName is not allowed, but obfuscators... + this.typeName = module.GetString(module.TypeDef.records[index].TypeName) ?? ""; this.typeNamespace = module.GetString(module.TypeDef.records[index].TypeNamespace); MarkKnownType(typeNamespace, typeName); } |