Merge pull request #9394 from osmandapp/Fix_create_poi_npe

Fix create poi action npe
This commit is contained in:
vshcherb 2020-07-06 14:21:52 +02:00 committed by GitHub
commit a0201324bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
} }
} }