diff --git a/OsmAnd/src/net/osmand/plus/download/DownloadResources.java b/OsmAnd/src/net/osmand/plus/download/DownloadResources.java index 801317e71d..7f3474b154 100644 --- a/OsmAnd/src/net/osmand/plus/download/DownloadResources.java +++ b/OsmAnd/src/net/osmand/plus/download/DownloadResources.java @@ -42,12 +42,14 @@ public class DownloadResources extends DownloadResourceGroup { public IndexItem getWorldBaseMapItem() { DownloadResourceGroup worldMaps = getSubGroupById(DownloadResourceGroupType.WORLD_MAPS.getDefaultId()); IndexItem worldMap = null; - List list = worldMaps.getIndividualResources(); - if(list != null) { - for(IndexItem ii : list) { - if(ii.getBasename().equalsIgnoreCase(WorldRegion.WORLD_BASEMAP)) { - worldMap = ii; - break; + if (worldMaps != null) { + List list = worldMaps.getIndividualResources(); + if (list != null) { + for (IndexItem ii : list) { + if (ii.getBasename().equalsIgnoreCase(WorldRegion.WORLD_BASEMAP)) { + worldMap = ii; + break; + } } } }