Fixed NPE in LocalIndexesFragment in onPostExecute

This commit is contained in:
Denis 2014-11-10 11:16:54 +02:00
parent eee6eddf6f
commit d9ab5c4042

View file

@ -701,6 +701,9 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment {
@Override
protected void onPostExecute(List<String> warnings) {
if ( getDownloadActivity() == null) {
return;
}
getDownloadActivity().setProgressBarIndeterminateVisibility(false);
if (!warnings.isEmpty()) {
final StringBuilder b = new StringBuilder();