We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77ee98f commit d966234Copy full SHA for d966234
1 file changed
modules/library/src/main/java/top/mrxiaom/pluginbase/utils/Util.java
@@ -182,7 +182,7 @@ public static boolean createNewFile(File file) throws IOException {
182
*/
183
@SuppressWarnings("UnusedReturnValue")
184
public static boolean mkdirs(File file) {
185
- return file.mkdirs();
+ return file != null && file.mkdirs();
186
}
187
188
/**
0 commit comments