From 7357db73d873005d8f68826de5222e6f8fd68541 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 2 Nov 2016 11:25:04 +0200 Subject: [PATCH] Fix #3215 --- OsmAnd/src/net/osmand/plus/osmedit/OsmEditingPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/OsmEditingPlugin.java b/OsmAnd/src/net/osmand/plus/osmedit/OsmEditingPlugin.java index 0c07b5b2f6..d910aed155 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/OsmEditingPlugin.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/OsmEditingPlugin.java @@ -201,7 +201,7 @@ public class OsmEditingPlugin extends OsmandPlugin { if (selectedObj instanceof Amenity) { Amenity amenity = (Amenity) selectedObj; final PoiType poiType = amenity.getType().getPoiTypeByKeyName(amenity.getSubType()); - isEditable = !amenity.getType().isWiki() && !poiType.isNotEditableOsm(); + isEditable = !amenity.getType().isWiki() && poiType !=null && !poiType.isNotEditableOsm(); } if (isEditable) { adapter.addItem(new ContextMenuItem.ItemBuilder().setTitleId(R.string.poi_context_menu_modify, mapActivity)