Merge pull request #4193 from osmandapp/fix_npe_16_line

Fix NPE
This commit is contained in:
vshcherb 2017-07-24 13:35:26 +02:00 committed by GitHub
commit b3675f21b1

View file

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