From 0b4a554e1cbaf0c990fd185cfec82d02f080c2ac Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Fri, 1 Jun 2012 00:17:04 +0200 Subject: [PATCH] Fix critical issue with TTS --- .../src/net/osmand/plus/activities/DownloadIndexActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/DownloadIndexActivity.java b/OsmAnd/src/net/osmand/plus/activities/DownloadIndexActivity.java index b35c179d83..248ead091a 100644 --- a/OsmAnd/src/net/osmand/plus/activities/DownloadIndexActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/DownloadIndexActivity.java @@ -453,7 +453,7 @@ public class DownloadIndexActivity extends OsmandExpandableListActivity { int total = settings.NUMBER_OF_FREE_DOWNLOADS.get() + entriesToDownload.size(); boolean wiki = false; for (DownloadEntry es : entriesToDownload.values()) { - if (es.baseName.contains("_wiki")) { + if (es.baseName != null && es.baseName.contains("_wiki")) { wiki = true; break; }