Fixed null pointer in downloadindexadapter
This commit is contained in:
parent
d50ae48e54
commit
a1b10b5aec
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue