mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 17:13:23 +02:00
Prevent NPE
This can happen on a disconnect event before start
This commit is contained in:
@@ -678,8 +678,10 @@ public class ServiceSynchronize extends ServiceBase {
|
||||
private void stop() {
|
||||
EntityLog.log(this, "Main stop");
|
||||
|
||||
state.stop();
|
||||
state.join();
|
||||
if (state != null) {
|
||||
state.stop();
|
||||
state.join();
|
||||
}
|
||||
|
||||
EntityLog.log(this, "Main stopped");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user