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

View File

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