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