From 1405d3be98ef852a7e0925d1f0b32d8c995287bb Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 11 Aug 2018 05:08:10 +0000 Subject: [PATCH] Fixed crash --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index d71da4afb2..fdd8eeb232 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -175,7 +175,7 @@ public class ServiceSynchronize extends LifecycleService { Log.i(Helper.TAG, "Service start"); super.onStartCommand(intent, flags, startId); - if ("unseen".equals(intent.getAction())) { + if (intent != null && "unseen".equals(intent.getAction())) { final long now = new Date().getTime(); executor.submit(new Runnable() { @Override