diff --git a/OsmAnd/src/net/osmand/plus/download/DownloadResources.java b/OsmAnd/src/net/osmand/plus/download/DownloadResources.java index 93b916b2bf..2eeac7818c 100644 --- a/OsmAnd/src/net/osmand/plus/download/DownloadResources.java +++ b/OsmAnd/src/net/osmand/plus/download/DownloadResources.java @@ -461,16 +461,11 @@ public class DownloadResources extends DownloadResourceGroup { return findIndexItemsAt(app, latLon, type, false); } - public static List findIndexItemsAt(OsmandApplication app, LatLon latLon, DownloadActivityType type, boolean includeDownloaded) { + public static List findIndexItemsAt(OsmandApplication app, LatLon latLon, DownloadActivityType type, boolean includeDownloaded) throws IOException { List res = new ArrayList<>(); OsmandRegions regions = app.getRegions(); DownloadIndexesThread downloadThread = app.getDownloadThread(); - List downloadRegions = null; - try { - downloadRegions = regions.getWoldRegions(latLon); - } catch (IOException e) { - android.util.Log.e(TAG, e.getMessage(), e); - } + List downloadRegions = regions.getWoldRegions(latLon); if (downloadRegions != null) { for (WorldRegion downloadRegion : downloadRegions) { if (includeDownloaded || !isIndexItemDownloaded(downloadThread, type, downloadRegion, res)) {