Prevent crash

This commit is contained in:
M66B 2023-01-16 19:21:16 +01:00
parent 79f2ec56a6
commit bb2dac7b66
1 changed files with 1 additions and 1 deletions

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