Merge pull request #945 from Bars107/r1.9
Fixed null pointer in download indexadapter
This commit is contained in:
commit
ee2efd1291
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