From 49d346771cb8f824f32014da5a9cb3a4815761f7 Mon Sep 17 00:00:00 2001 From: Nazar-Kutz Date: Wed, 20 May 2020 12:33:10 +0300 Subject: [PATCH] Fix ConcurrentModificationException --- OsmAnd-java/src/main/java/net/osmand/osm/MapPoiTypes.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/osm/MapPoiTypes.java b/OsmAnd-java/src/main/java/net/osmand/osm/MapPoiTypes.java index 40923d98d8..c56b20ce2f 100644 --- a/OsmAnd-java/src/main/java/net/osmand/osm/MapPoiTypes.java +++ b/OsmAnd-java/src/main/java/net/osmand/osm/MapPoiTypes.java @@ -203,8 +203,7 @@ public class MapPoiTypes { public Map getAllTranslatedNames(boolean skipNonEditable) { Map translation = new HashMap(); - for (int i = 0; i < categories.size(); i++) { - PoiCategory pc = categories.get(i); + for (PoiCategory pc : categories) { if (skipNonEditable && pc.isNotEditableOsm()) { continue; }