diff --git a/android/src/com/mapswithme/maps/MwmActivity.java b/android/src/com/mapswithme/maps/MwmActivity.java index 6850be27ef..fb65c72da8 100644 --- a/android/src/com/mapswithme/maps/MwmActivity.java +++ b/android/src/com/mapswithme/maps/MwmActivity.java @@ -1264,13 +1264,12 @@ public class MwmActivity extends BaseMwmFragmentActivity return; } - if (mSearchController.hide()) + if (mSearchController != null && mSearchController.hide()) { SearchEngine.INSTANCE.cancelInteractiveSearch(); if (mFilterController != null) mFilterController.resetFilter(); - if (mSearchController != null) - mSearchController.clear(); + mSearchController.clear(); return; }