From f2ce6550e41a2e89c6e018d6f5b5ef5c5804369a Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Thu, 27 Jul 2017 18:23:49 +0300 Subject: [PATCH] Fix NPE --- .../net/osmand/plus/osmedit/dialogs/SendPoiDialogFragment.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/dialogs/SendPoiDialogFragment.java b/OsmAnd/src/net/osmand/plus/osmedit/dialogs/SendPoiDialogFragment.java index b028f7495d..b8b95a82ab 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/dialogs/SendPoiDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/dialogs/SendPoiDialogFragment.java @@ -149,6 +149,9 @@ public class SendPoiDialogFragment extends DialogFragment { if (p.getGroup() == OsmPoint.Group.POI) { OsmPoint.Action action = p.getAction(); String type = ((OpenstreetmapPoint) p).getEntity().getTag(EditPoiData.POI_TYPE_TAG); + if (type == null) { + continue; + } PoiType localizedPoiType = allTranslatedSubTypes.get(type.toLowerCase().trim()); if (localizedPoiType != null) { type = Algorithms.capitalizeFirstLetter(localizedPoiType.getKeyName().replace('_', ' '));