Fix crash at getWorldBaseMapItem

This commit is contained in:
Alexey Kulish 2015-11-23 12:18:02 +03:00
parent 73dcb066b7
commit dad767c480

View file

@ -42,6 +42,7 @@ 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) {
@ -51,6 +52,7 @@ public class DownloadResources extends DownloadResourceGroup {
}
}
}
}
return worldMap;
}