Fix download NPE

This commit is contained in:
Victor Shcherb 2017-05-29 22:11:48 +02:00
parent ed93e37f72
commit fa407ef386

View file

@ -238,7 +238,7 @@ public class LiveUpdatesFragment extends BaseOsmAndFragment implements InAppList
} }
public void notifyLiveUpdatesChanged() { public void notifyLiveUpdatesChanged() {
if (adapter != null) { if (adapter != null && getMyApplication() != null && getActivity() != null) {
adapter.notifyLiveUpdatesChanged(); adapter.notifyLiveUpdatesChanged();
} }
} }