Fixed crash

pull/50/head
M66B 6 years ago
parent 4aca3880e4
commit 1405d3be98

@ -175,7 +175,7 @@ public class ServiceSynchronize extends LifecycleService {
Log.i(Helper.TAG, "Service start"); Log.i(Helper.TAG, "Service start");
super.onStartCommand(intent, flags, startId); super.onStartCommand(intent, flags, startId);
if ("unseen".equals(intent.getAction())) { if (intent != null && "unseen".equals(intent.getAction())) {
final long now = new Date().getTime(); final long now = new Date().getTime();
executor.submit(new Runnable() { executor.submit(new Runnable() {
@Override @Override

Loading…
Cancel
Save