Fix NPE
This commit is contained in:
parent
da7871dfca
commit
7e4d664cab
1 changed files with 4 additions and 2 deletions
|
@ -240,8 +240,10 @@ public class LiveUpdatesFragment extends BaseOsmAndFragment implements InAppList
|
|||
}
|
||||
|
||||
public void notifyLiveUpdatesChanged() {
|
||||
if (adapter != null && getMyApplication() != null && getActivity() != null) {
|
||||
adapter.notifyLiveUpdatesChanged();
|
||||
if (getActivity() != null) {
|
||||
if (adapter != null && getMyApplication() != null) {
|
||||
adapter.notifyLiveUpdatesChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue