fix NPE
This commit is contained in:
parent
1f209acf28
commit
d5722ded0c
1 changed files with 3 additions and 1 deletions
|
@ -595,7 +595,9 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment implement
|
|||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
asyncLoader.cancel(true);
|
||||
if (asyncLoader != null && asyncLoader.getStatus() == AsyncTask.Status.RUNNING) {
|
||||
asyncLoader.cancel(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue