This commit is contained in:
laoyuyu committed 2019-10-27 01:28:34 +08:00
1 parent 0822c053cb
commit a575e885a9
5 files changed
+42 -16

No files matched your search

@@ -99,7 +99,7 @@ public class NormalLoader extends AbsLoader {
((IDLoadListener) mListener).onPostPre(getEntity().getFileSize());
}
File file = new File(getEntity().getFilePath());
if (!file.getParentFile().exists()) {
if (file.getParentFile() != null && !file.getParentFile().exists()) {
file.getParentFile().mkdirs();
}
}