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,10 +240,12 @@ public class LiveUpdatesFragment extends BaseOsmAndFragment implements InAppList
} }
public void notifyLiveUpdatesChanged() { public void notifyLiveUpdatesChanged() {
if (adapter != null && getMyApplication() != null && getActivity() != null) { if (getActivity() != null) {
if (adapter != null && getMyApplication() != null) {
adapter.notifyLiveUpdatesChanged(); adapter.notifyLiveUpdatesChanged();
} }
} }
}
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
@Override @Override