Преглед на файлове

null check on getClassName

Nicolas Cannasse преди 19 години
родител
ревизия
d1e376af6c
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      std/Type.hx

+ 2 - 0
std/Type.hx

@@ -93,6 +93,8 @@ class Type {
 		Returns the complete name of the class of an object
 	**/
 	public static function getClassName( c : Class ) : String {
+		if( c == null )
+			return null;
 		#if flash9
 			return untyped __global__["flash.utils.getQualifiedClassName"](c);
 		#else true