Fixed NPE if GeoIntentActivity is closed immediately
This commit is contained in:
parent
1016b155dc
commit
03ed579b37
1 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue