diff --git a/OsmAnd/src/net/osmand/plus/activities/FavoritesTreeFragment.java b/OsmAnd/src/net/osmand/plus/activities/FavoritesTreeFragment.java index 588f408e6a..026b10786e 100644 --- a/OsmAnd/src/net/osmand/plus/activities/FavoritesTreeFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/FavoritesTreeFragment.java @@ -284,11 +284,17 @@ public class FavoritesTreeFragment extends OsmandExpandableListFragment { public void showProgressBar() { - getActionBarActivity().setSupportProgressBarIndeterminateVisibility(true); + OsmandActionBarActivity activity = getActionBarActivity(); + if(activity != null) { + activity.setSupportProgressBarIndeterminateVisibility(true); + } } public void hideProgressBar() { - getActionBarActivity().setSupportProgressBarIndeterminateVisibility(false); + OsmandActionBarActivity activity = getActionBarActivity(); + if(activity != null) { + activity.setSupportProgressBarIndeterminateVisibility(false); + } } private void enterMapMarkersMode() {