diff --git a/OsmAnd-java/src/net/osmand/osm/MapRenderingTypes.java b/OsmAnd-java/src/net/osmand/osm/MapRenderingTypes.java index 655e7069b0..74beacb972 100644 --- a/OsmAnd-java/src/net/osmand/osm/MapRenderingTypes.java +++ b/OsmAnd-java/src/net/osmand/osm/MapRenderingTypes.java @@ -128,8 +128,10 @@ public class MapRenderingTypes { if (t != null) { if (amenityNameToType.containsKey(t)) { System.err.println("Conflict " + t + " " + amenityNameToType.get(t) + " <> " + e.getKey()); - } - amenityNameToType.put(t, e.getKey()); + } else { + amenityNameToType.put(t, e.getKey()); + } + } } }