Try to avoid npe #5496

This commit is contained in:
Victor Shcherb 2018-05-26 11:36:33 +02:00
parent c503c78c70
commit 86376c9ed8

View file

@ -183,6 +183,9 @@ public class FavoritePointEditorFragment extends PointEditorFragment {
} else { } else {
helper.editFavouriteName(favorite, name, category, description); helper.editFavouriteName(favorite, name, category, description);
} }
if(getMapActivity() == null) {
return;
}
getMapActivity().refreshMap(); getMapActivity().refreshMap();
if (needDismiss) { if (needDismiss) {
dismiss(false); dismiss(false);