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