Browse Source

Fixed for null _metaMap.

woollybah 6 years ago
parent
commit
f7cbfdf615
1 changed files with 2 additions and 2 deletions
  1. 2 2
      reflection.mod/reflection.bmx

+ 2 - 2
reflection.mod/reflection.bmx

@@ -2181,7 +2181,7 @@ Type TTypeId
 	bbdoc: Get type meta data
 	End Rem
 	Method MetaData$( key$="" )
-		If Not key Return _meta
+		If Not _metaMap Or Not key Return _meta
 		Return String(_metaMap.ValueForKey(key))
 	End Method
 	
@@ -2189,7 +2189,7 @@ Type TTypeId
 	bbdoc: Returns #True if @key is in the metadata.
 	End Rem
 	Method HasMetaData:Int( key:String )
-		If Not key Return False
+		If Not _metaMap Or Not key Return False
 		Return _metaMap.Contains(key)
 	End Method