Commit 359c0ead authored by Andreas Schildbach's avatar Andreas Schildbach

BackupWalletDialogFragment: Make sure verification isn't tried if backup throws an IOException.

parent 9ebfa02d
......@@ -308,6 +308,7 @@ public class BackupWalletDialogFragment extends DialogFragment {
} catch (final IOException x) {
log.error("problem backing up wallet", x);
ErrorDialogFragment.showDialog(getFragmentManager(), x.toString());
return;
}
try (final Reader cipherIn = new InputStreamReader(
......@@ -328,6 +329,7 @@ public class BackupWalletDialogFragment extends DialogFragment {
} catch (final IOException x) {
log.error("problem verifying backup", x);
ErrorDialogFragment.showDialog(getFragmentManager(), x.toString());
return;
}
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment