how comes result is null sometimes in return of e.getmessage....

This commit is contained in:
zeapo 2014-11-05 07:20:46 +01:00
parent 44d1138f5a
commit 674687ddcf

View file

@ -52,6 +52,9 @@ public class GitAsyncTask extends AsyncTask<GitCommand, Integer, String> {
protected void onPostExecute(String result) { protected void onPostExecute(String result) {
this.dialog.dismiss(); this.dialog.dismiss();
if (result == null)
result = "Unexpected error";
if (!result.isEmpty()) { if (!result.isEmpty()) {
new AlertDialog.Builder(activity). new AlertDialog.Builder(activity).
setTitle(activity.getResources().getString(R.string.jgit_error_dialog_title)). setTitle(activity.getResources().getString(R.string.jgit_error_dialog_title)).