Nicolas Cannasse 8 tahun lalu
induk
melakukan
5b79cb2e35
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      std/hl/_std/Sys.hx

+ 1 - 0
std/hl/_std/Sys.hx

@@ -42,6 +42,7 @@ class Sys {
 		return utf8Path ? s.bytes.utf16ToUtf8(0, null) : s.bytes;
 		return utf8Path ? s.bytes.utf16ToUtf8(0, null) : s.bytes;
 	}
 	}
 	static function makePath( b : hl.Bytes ) : String {
 	static function makePath( b : hl.Bytes ) : String {
+		if( b == null ) return null;
 		return utf8Path ? String.fromUTF8(b) : String.fromUCS2(b);
 		return utf8Path ? String.fromUTF8(b) : String.fromUCS2(b);
 	}
 	}