summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorzeapo <mohamed@zenadi.com>2014-11-05 07:20:46 +0100
committerzeapo <mohamed@zenadi.com>2014-11-05 07:36:17 +0100
commit674687ddcfcc3b0b5c93be1879ce7d8383c83ba8 (patch)
tree2946584fc694801e704a13746d8ef183ddee523c /app
parent44d1138f5aa11b51e2c826ea5a5f9d65d9335885 (diff)
how comes result is null sometimes in return of e.getmessage....
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/GitAsyncTask.java3
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)).