浏览代码

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);
 	}