Add null check

This commit is contained in:
Christopher Eby 2010-02-28 21:37:46 -06:00
parent bfab1d92a7
commit 06cb7d96a3

View File

@ -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;