Fix download NPE

This commit is contained in:
Victor Shcherb 2017-05-29 22:11:48 +02:00
parent f22f95ee4a
commit 08c5a7626e

View file

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