From ef302a0059d2301a6dcce7897feffc0aec429214 Mon Sep 17 00:00:00 2001 From: Denis Date: Mon, 10 Nov 2014 11:16:54 +0200 Subject: [PATCH] Fixed NPE in LocalIndexesFragment in onPostExecute --- OsmAnd/src/net/osmand/plus/download/LocalIndexesFragment.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/download/LocalIndexesFragment.java b/OsmAnd/src/net/osmand/plus/download/LocalIndexesFragment.java index fd3549998d..eecbb89880 100644 --- a/OsmAnd/src/net/osmand/plus/download/LocalIndexesFragment.java +++ b/OsmAnd/src/net/osmand/plus/download/LocalIndexesFragment.java @@ -701,6 +701,9 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment { @Override protected void onPostExecute(List warnings) { + if ( getDownloadActivity() == null) { + return; + } getDownloadActivity().setProgressBarIndeterminateVisibility(false); if (!warnings.isEmpty()) { final StringBuilder b = new StringBuilder();