From 86376c9ed89cdbfa6bf6e2ce24c07c9114d9a699 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 26 May 2018 11:36:33 +0200 Subject: [PATCH] Try to avoid npe #5496 --- .../mapcontextmenu/editors/FavoritePointEditorFragment.java | 3 +++ 1 file changed, 3 insertions(+) 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);