Skip to content

Commit

Permalink
Make sure mService exists when we call stop
Browse files Browse the repository at this point in the history
  • Loading branch information
ivosabev committed Sep 25, 2018
1 parent 07df724 commit c729fca
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,9 @@ private void startBackgroundService() {
private void stopBackgroundService() {
logger.info("Attempt to stop bg service");
synchronized (mLock) {
mService.stop();
if (mService != null) {
mService.stop();
}
}
}

Expand Down

0 comments on commit c729fca

Please sign in to comment.