Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit bb0e206

Browse files
AndrewJacksergey-akhalkov
authored andcommitted
If current package folder is null don't delete (#870)
1 parent 41c0c88 commit bb0e206

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

android/app/src/main/java/com/microsoft/codepush/react/FileUtils.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ public static void copyDirectoryContents(String sourceDirectoryPath, String dest
5555
}
5656

5757
public static void deleteDirectoryAtPath(String directoryPath) {
58+
if (directoryPath == null) {
59+
CodePushUtils.log("deleteDirectoryAtPath attempted with null directoryPath");
60+
return;
61+
}
5862
File file = new File(directoryPath);
5963
if (file.exists()) {
6064
deleteFileOrFolderSilently(file);

0 commit comments

Comments
 (0)