diff --git a/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java b/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java index 83e87a54aa..caa447f935 100644 --- a/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java @@ -769,7 +769,10 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC searching = false; hideProgressBar(); updateClearButtonVisibility(true); - getDialog().hide(); + Dialog dialog = getDialog(); + if (dialog != null) { + dialog.hide(); + } app.getLocationProvider().addCompassListener(app.getLocationProvider().getNavigationInfo()); }