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