diff --git a/app/src/main/java/com/zeapo/pwdstore/GitAsyncTask.java b/app/src/main/java/com/zeapo/pwdstore/GitAsyncTask.java index 6d0e745d..ddb3a060 100644 --- a/app/src/main/java/com/zeapo/pwdstore/GitAsyncTask.java +++ b/app/src/main/java/com/zeapo/pwdstore/GitAsyncTask.java @@ -52,6 +52,9 @@ public class GitAsyncTask extends AsyncTask { protected void onPostExecute(String result) { this.dialog.dismiss(); + if (result == null) + result = "Unexpected error"; + if (!result.isEmpty()) { new AlertDialog.Builder(activity). setTitle(activity.getResources().getString(R.string.jgit_error_dialog_title)).