From ed668ddcd69ae95e3fd64873e2c1631c52884a59 Mon Sep 17 00:00:00 2001 From: Denis Date: Wed, 5 Nov 2014 10:54:56 +0200 Subject: [PATCH] Fixed null pointer in download indexadapter --- OsmAnd/src/net/osmand/plus/download/DownloadIndexAdapter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/download/DownloadIndexAdapter.java b/OsmAnd/src/net/osmand/plus/download/DownloadIndexAdapter.java index f5749ada81..df5042b833 100644 --- a/OsmAnd/src/net/osmand/plus/download/DownloadIndexAdapter.java +++ b/OsmAnd/src/net/osmand/plus/download/DownloadIndexAdapter.java @@ -64,6 +64,9 @@ public class DownloadIndexAdapter extends OsmandBaseExpandableListAdapter implem } public void collapseTrees(final CharSequence constraint) { + if (downloadFragment == null) { + return; + } downloadFragment.getDownloadActivity().runOnUiThread(new Runnable() { @Override public void run() {