Fix create poi action npe

This commit is contained in:
Dima-1 2020-07-06 13:20:47 +03:00
parent de7ed59380
commit c30ceb2330

View file

@ -253,8 +253,8 @@ public class EditPoiData {
} }
public boolean hasEmptyValue() { public boolean hasEmptyValue() {
for (String value : tagValues.values()) { for (Map.Entry<String, String> tag : tagValues.entrySet()) {
if (value.isEmpty()) { if (tag.getValue().isEmpty() && !POI_TYPE_TAG.equals(tag.getKey())) {
return true; return true;
} }
} }