传统的 new File(path)是会报空指针的。

可以用

代替 new File(path) 方法。