Prevent NPE

This commit is contained in:
M66B 2022-09-29 06:43:04 +02:00
parent 22e0996afb
commit 36d0286eb7
1 changed files with 2 additions and 1 deletions

View File

@ -375,7 +375,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
event = true;
start(current, current.accountState.isEnabled(current.enabled) || sync, force);
}
} else if (current.canRun(ServiceSynchronize.this) && !state.isAlive()) {
} else if (current.canRun(ServiceSynchronize.this) &&
state != null && !state.isAlive()) {
Log.e(current + " died");
EntityLog.log(ServiceSynchronize.this, "### died " + current);
event = true;