Fix crash at getWorldBaseMapItem
This commit is contained in:
parent
73dcb066b7
commit
dad767c480
1 changed files with 8 additions and 6 deletions
|
@ -42,15 +42,17 @@ public class DownloadResources extends DownloadResourceGroup {
|
|||
public IndexItem getWorldBaseMapItem() {
|
||||
DownloadResourceGroup worldMaps = getSubGroupById(DownloadResourceGroupType.WORLD_MAPS.getDefaultId());
|
||||
IndexItem worldMap = null;
|
||||
if (worldMaps != null) {
|
||||
List<IndexItem> list = worldMaps.getIndividualResources();
|
||||
if(list != null) {
|
||||
for(IndexItem ii : list) {
|
||||
if(ii.getBasename().equalsIgnoreCase(WorldRegion.WORLD_BASEMAP)) {
|
||||
if (list != null) {
|
||||
for (IndexItem ii : list) {
|
||||
if (ii.getBasename().equalsIgnoreCase(WorldRegion.WORLD_BASEMAP)) {
|
||||
worldMap = ii;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return worldMap;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue