how comes result is null sometimes in return of e.getmessage....
This commit is contained in:
parent
44d1138f5a
commit
674687ddcf
1 changed files with 3 additions and 0 deletions
|
@ -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)).
|
||||||
|
|
Loading…
Reference in a new issue