Fixed null pointer in download indexadapter

This commit is contained in:
Denis 2014-11-05 10:54:56 +02:00
parent 52ab3595ba
commit ed668ddcd6

View file

@ -64,6 +64,9 @@ public class DownloadIndexAdapter extends OsmandBaseExpandableListAdapter implem
} }
public void collapseTrees(final CharSequence constraint) { public void collapseTrees(final CharSequence constraint) {
if (downloadFragment == null) {
return;
}
downloadFragment.getDownloadActivity().runOnUiThread(new Runnable() { downloadFragment.getDownloadActivity().runOnUiThread(new Runnable() {
@Override @Override
public void run() { public void run() {