This commit is contained in:
Chumva 2018-05-21 11:48:54 +03:00
parent 1f209acf28
commit d5722ded0c

View file

@ -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);
}
}