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 1551012f8..184186af8 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 { 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";