fixes some crashes where the dialog is no longer available

This commit is contained in:
Mohamed Zenadi 2015-05-12 22:59:27 +02:00
parent c5f55fce88
commit a01276699a

View File

@ -52,7 +52,12 @@ public class GitAsyncTask extends AsyncTask<GitCommand, Integer, String> {
protected void onPostExecute(String result) {
if (this.dialog != null)
this.dialog.dismiss();
try {
this.dialog.dismiss();
} catch (Exception e)
{
// ignore
}
if (result == null)
result = "Unexpected error";