diff options
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/GitAsyncTask.java | 3 |
1 files changed, 3 insertions, 0 deletions
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<GitCommand, Integer, String> { 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)). |