From 674687ddcfcc3b0b5c93be1879ce7d8383c83ba8 Mon Sep 17 00:00:00 2001 From: zeapo Date: Wed, 5 Nov 2014 07:20:46 +0100 Subject: [PATCH] how comes result is null sometimes in return of e.getmessage.... --- app/src/main/java/com/zeapo/pwdstore/GitAsyncTask.java | 3 +++ 1 file changed, 3 insertions(+) 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)).