Prevent crash

pull/212/head
M66B 2 years ago
parent 79f2ec56a6
commit bb2dac7b66

@ -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);
}

Loading…
Cancel
Save