Bladeren bron

minor fix

Nicolas Cannasse 8 jaren geleden
bovenliggende
commit
5b79cb2e35
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  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;
 	}
 	static function makePath( b : hl.Bytes ) : String {
+		if( b == null ) return null;
 		return utf8Path ? String.fromUTF8(b) : String.fromUCS2(b);
 	}