From a1b10b5aec1f5b7fa1a2b95023931e76fd13a9c9 Mon Sep 17 00:00:00 2001 From: Denis Date: Fri, 7 Nov 2014 15:49:56 +0200 Subject: [PATCH] Fixed null pointer in downloadindexadapter --- OsmAnd/src/net/osmand/plus/download/DownloadIndexAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/download/DownloadIndexAdapter.java b/OsmAnd/src/net/osmand/plus/download/DownloadIndexAdapter.java index 388ecaa291..837c4c2147 100644 --- a/OsmAnd/src/net/osmand/plus/download/DownloadIndexAdapter.java +++ b/OsmAnd/src/net/osmand/plus/download/DownloadIndexAdapter.java @@ -64,7 +64,7 @@ public class DownloadIndexAdapter extends OsmandBaseExpandableListAdapter implem } public void collapseTrees(final CharSequence constraint) { - if (downloadFragment == null) { + if (downloadFragment == null || downloadFragment.getDownloadActivity() == null) { return; } downloadFragment.getDownloadActivity().runOnUiThread(new Runnable() {