diff options
author | Mohamed Zenadi <mohamed@zenadi.com> | 2015-05-12 22:59:27 +0200 |
---|---|---|
committer | Mohamed Zenadi <mohamed@zenadi.com> | 2015-05-12 22:59:27 +0200 |
commit | a01276699aa0e6218710d33a7cd8bda5f0bdd97b (patch) | |
tree | 20bcc59cba7dd787681216bd0a6c3220edf87c1a | |
parent | c5f55fce882ca488fb2acf7511aa28442668923b (diff) |
fixes some crashes where the dialog is no longer availablev1.2.0.16
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/git/GitAsyncTask.java | 7 |
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"; |