From c30ceb233097acd4ae4997cfaa008c5fbce6ba4e Mon Sep 17 00:00:00 2001 From: Dima-1 Date: Mon, 6 Jul 2020 13:20:47 +0300 Subject: [PATCH] Fix create poi action npe --- OsmAnd/src/net/osmand/plus/osmedit/EditPoiData.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/EditPoiData.java b/OsmAnd/src/net/osmand/plus/osmedit/EditPoiData.java index 86ea01258e..e081c60c59 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/EditPoiData.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/EditPoiData.java @@ -253,8 +253,8 @@ public class EditPoiData { } public boolean hasEmptyValue() { - for (String value : tagValues.values()) { - if (value.isEmpty()) { + for (Map.Entry tag : tagValues.entrySet()) { + if (tag.getValue().isEmpty() && !POI_TYPE_TAG.equals(tag.getKey())) { return true; } }