From 10580a7e38a1f56d2926cf39c2263df2bb9f3d99 Mon Sep 17 00:00:00 2001 From: Yong Date: Wed, 16 Nov 2016 12:32:57 +0800 Subject: [PATCH] * fix FreelineService NPE (#301) --- .../src/main/java/com/antfortune/freeline/FreelineService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/runtime/src/main/java/com/antfortune/freeline/FreelineService.java b/runtime/runtime/src/main/java/com/antfortune/freeline/FreelineService.java index 378d22d..c027fda 100644 --- a/runtime/runtime/src/main/java/com/antfortune/freeline/FreelineService.java +++ b/runtime/runtime/src/main/java/com/antfortune/freeline/FreelineService.java @@ -39,7 +39,7 @@ public int onStartCommand(Intent intent, int flags, int startId) { Log.i(LOG_TAG, "onStartCommand Received start id " + startId + ", intent: " + intent); LongLinkServer.start(this.getApplication(), Router.getInstance()); - String marker = intent.getStringExtra("wakeup"); + String marker = intent == null ? null : intent.getStringExtra("wakeup"); if (TextUtils.isEmpty(marker)) { try { setForegroundService();