Add null check
This commit is contained in:
parent
bfab1d92a7
commit
06cb7d96a3
@ -536,6 +536,9 @@ public class PlaybackService extends Service implements Runnable, MediaPlayer.On
|
|||||||
|
|
||||||
private void setCurrentSong(int delta)
|
private void setCurrentSong(int delta)
|
||||||
{
|
{
|
||||||
|
if (mMediaPlayer == null)
|
||||||
|
return;
|
||||||
|
|
||||||
Song song = getSong(delta);
|
Song song = getSong(delta);
|
||||||
if (song == null)
|
if (song == null)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user