Fixed NPE in localIndexFragment in onPostExecute

This commit is contained in:
Denis 2014-11-10 11:29:44 +02:00
parent a77e6329a4
commit bb695deaed

View file

@ -268,9 +268,10 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment {
protected void onPostExecute(List<LocalIndexInfo> result) {
this.result = result;
listAdapter.sortData();
getDownloadActivity().setSupportProgressBarIndeterminateVisibility(false);
getDownloadActivity().setLocalIndexInfos(result);
if (getDownloadActivity() != null){
getDownloadActivity().setSupportProgressBarIndeterminateVisibility(false);
getDownloadActivity().setLocalIndexInfos(result);
}
}
public List<LocalIndexInfo> getResult() {