diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/FavoritePointEditorFragment.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/FavoritePointEditorFragment.java index 436ccc3a6d..ea1cdc9fb2 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/FavoritePointEditorFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/FavoritePointEditorFragment.java @@ -183,6 +183,9 @@ public class FavoritePointEditorFragment extends PointEditorFragment { } else { helper.editFavouriteName(favorite, name, category, description); } + if(getMapActivity() == null) { + return; + } getMapActivity().refreshMap(); if (needDismiss) { dismiss(false);