mirror of https://github.com/M66B/FairEmail.git
Prevent NPE
This commit is contained in:
parent
22e0996afb
commit
36d0286eb7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue