1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-23 22:51:02 +00:00

Prevent crash

This commit is contained in:
M66B 2023-01-16 19:21:16 +01:00
parent 79f2ec56a6
commit bb2dac7b66

View file

@ -811,7 +811,7 @@ public class FragmentSetup extends FragmentBase implements SharedPreferences.OnS
@Override
public void onSharedPreferenceChanged(SharedPreferences prefs, String key) {
if ("poll_interval".equals(key))
if ("poll_interval".equals(key) && cbAlways != null)
cbAlways.setChecked(ServiceSynchronize.getPollInterval(getContext()) == 0);
}