소스 검색

minor fix

Nicolas Cannasse 8 년 전
부모
커밋
5b79cb2e35
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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);
 	}