点击下一首的时候报java.lang.IllegalStateException  报的是int position = player.getCurrentPosition();这句话,网上说加上return就没了,的确加上之后是没报了,但是播放时间和进度条也不动了。求解,这是怎么回事。
if (player != null) {
int position = player.getCurrentPosition();
int total = player.getDuration();
Intent intent = new Intent("cn.com.karl.progress");
intent.putExtra("position", position);
intent.putExtra("total", total);
sendBroadcast(intent);
}