aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorMohamed Zenadi <mohamed@zenadi.com>2015-05-12 22:59:27 +0200
committerMohamed Zenadi <mohamed@zenadi.com>2015-05-12 22:59:27 +0200
commita01276699aa0e6218710d33a7cd8bda5f0bdd97b (patch)
tree20bcc59cba7dd787681216bd0a6c3220edf87c1a /app/src
parentc5f55fce882ca488fb2acf7511aa28442668923b (diff)
fixes some crashes where the dialog is no longer availablev1.2.0.16
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/git/GitAsyncTask.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/git/GitAsyncTask.java b/app/src/main/java/com/zeapo/pwdstore/git/GitAsyncTask.java
index 1551012f..184186af 100644
--- a/app/src/main/java/com/zeapo/pwdstore/git/GitAsyncTask.java
+++ b/app/src/main/java/com/zeapo/pwdstore/git/GitAsyncTask.java
@@ -52,7 +52,12 @@ public class GitAsyncTask extends AsyncTask<GitCommand, Integer, String> {
protected void onPostExecute(String result) {
if (this.dialog != null)
- this.dialog.dismiss();
+ try {
+ this.dialog.dismiss();
+ } catch (Exception e)
+ {
+ // ignore
+ }
if (result == null)
result = "Unexpected error";