diff --git a/src/main/java/com/sparrowwallet/sparrow/io/Storage.java b/src/main/java/com/sparrowwallet/sparrow/io/Storage.java index 26132dce..c2a966b9 100644 --- a/src/main/java/com/sparrowwallet/sparrow/io/Storage.java +++ b/src/main/java/com/sparrowwallet/sparrow/io/Storage.java @@ -219,7 +219,9 @@ public class Storage { } public void backupWallet() throws IOException { - backupWallet(null); + if(walletFile.toPath().startsWith(getWalletsDir().toPath())) { + backupWallet(null); + } } public void backupTempWallet() {