Skip to content

Commit

Permalink
* fix FreelineService NPE (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
lomanyong committed Nov 16, 2016
1 parent 3a7ea8d commit 10580a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 10580a7

Please sign in to comment.