From e5503c277d74ff8870243e47d6a24191f60b1d4d Mon Sep 17 00:00:00 2001 From: Chumva Date: Fri, 8 Jun 2018 18:33:02 +0300 Subject: [PATCH] removed unnecessary null check --- OsmAnd/src/net/osmand/plus/osmedit/OsmEditingPlugin.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/OsmEditingPlugin.java b/OsmAnd/src/net/osmand/plus/osmedit/OsmEditingPlugin.java index d07d90386d..b4b7ba7c09 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/OsmEditingPlugin.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/OsmEditingPlugin.java @@ -196,10 +196,8 @@ public class OsmEditingPlugin extends OsmandPlugin { } else if (resId == R.string.context_menu_item_modify_note) { modifyOsmNote(mapActivity, (OsmNotesPoint) selectedObj); } else if (resId == R.string.poi_context_menu_modify) { - if (selectedObj != null) { - EditPoiDialogFragment.showEditInstance(selectedObj instanceof TransportStop ? - ((TransportStop) selectedObj).getAmenity() : (Amenity) selectedObj, mapActivity); - } + EditPoiDialogFragment.showEditInstance(selectedObj instanceof TransportStop ? + ((TransportStop) selectedObj).getAmenity() : (Amenity) selectedObj, mapActivity); } else if (resId == R.string.poi_context_menu_modify_osm_change) { final Node entity = ((OpenstreetmapPoint) selectedObj).getEntity(); EditPoiDialogFragment.createInstance(entity, false)