Fix critical issue with TTS

This commit is contained in:
Victor Shcherb 2012-06-01 00:17:04 +02:00
parent d146f1f140
commit 0b4a554e1c

View file

@ -453,7 +453,7 @@ public class DownloadIndexActivity extends OsmandExpandableListActivity {
int total = settings.NUMBER_OF_FREE_DOWNLOADS.get() + entriesToDownload.size(); int total = settings.NUMBER_OF_FREE_DOWNLOADS.get() + entriesToDownload.size();
boolean wiki = false; boolean wiki = false;
for (DownloadEntry es : entriesToDownload.values()) { for (DownloadEntry es : entriesToDownload.values()) {
if (es.baseName.contains("_wiki")) { if (es.baseName != null && es.baseName.contains("_wiki")) {
wiki = true; wiki = true;
break; break;
} }