From 5ca3593d476905e0ea56a5929c60eb5acf97e9f6 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 27 Apr 2013 17:11:09 +0200 Subject: [PATCH] Fix concurrent exception --- OsmAnd/src/net/osmand/plus/resources/ResourceManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java b/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java index 987c5c45ac..d6c7421069 100644 --- a/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java +++ b/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java @@ -117,11 +117,11 @@ public class ResourceManager { protected final List transportRepositories = new ArrayList(); - protected final Map indexFileNames = new LinkedHashMap(); + protected final Map indexFileNames = Collections.synchronizedMap(new LinkedHashMap()); - protected final Set basemapFileNames = new LinkedHashSet(); + protected final Set basemapFileNames = Collections.synchronizedSet(new LinkedHashSet()); - protected final Map routingMapFiles = new LinkedHashMap(); + protected final Map routingMapFiles = Collections.synchronizedMap(new LinkedHashMap()); protected final MapRenderRepositories renderer;