aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java b/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java
index 6eabe535..996141a9 100644
--- a/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java
+++ b/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java
@@ -595,7 +595,7 @@ public class GitActivity extends AppCompatActivity {
} else {
try {
// Silently delete & replace the lone .git folder if it exists
- if (localDir.listFiles().length == 1 && localDir.listFiles()[0].getName().equals(".git")) {
+ if (localDir.exists() && localDir.listFiles().length == 1 && localDir.listFiles()[0].getName().equals(".git")) {
try {
FileUtils.deleteDirectory(localDir);
} catch (IOException e) {