Fixed NPE if GeoIntentActivity is closed immediately

This commit is contained in:
Pavol Zibrita 2011-07-25 21:28:20 +02:00
parent 1016b155dc
commit 03ed579b37

View file

@ -73,7 +73,9 @@ public class GeoIntentActivity extends ListActivity {
e.printStackTrace();
showResult(R.string.error_doing_search, null);
} finally {
progressDlg.dismiss();
if (progressDlg != null) {
progressDlg.dismiss();
}
}
}
}, "SearchingAddress");
@ -85,7 +87,6 @@ public class GeoIntentActivity extends ListActivity {
}
});
progressDlg.setCancelable(true);
}
// finish();
}