Fixed null pointer in download indexadapter

This commit is contained in:
Denis 2014-11-05 10:54:56 +02:00
parent 97be1babbf
commit 4ef721063c

View file

@ -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() {