Fixed null pointer in download indexadapter
This commit is contained in:
parent
52ab3595ba
commit
ed668ddcd6
1 changed files with 3 additions and 0 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue