Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--reflect/Reader/TypeDefImpl.cs3
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);
}