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();
|
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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue