Fixed null pointer in downloadindexadapter

This commit is contained in:
Denis 2014-11-07 15:49:56 +02:00
parent d50ae48e54
commit a1b10b5aec

View file

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