fix app crash (npe)
This commit is contained in:
parent
547ef668bc
commit
e50f2bf6b6
1 changed files with 3 additions and 1 deletions
|
@ -68,7 +68,9 @@ public class PodcastPlaybackService extends Service implements TextToSpeech.OnIn
|
|||
stopSelf();
|
||||
}
|
||||
|
||||
podcastNotification.unbind();
|
||||
if(podcastNotification != null) {
|
||||
podcastNotification.unbind();
|
||||
}
|
||||
|
||||
return super.onUnbind(intent);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue