提交 213b1226 编写于 作者: B bbcallen

AbstractMediaListPlayer: fix NPE

上级 499fe2a0
......@@ -148,14 +148,18 @@ public abstract class AbstractMediaListPlayer extends SimpleMediaPlayer {
@Override
public void release() {
mItemPlayer.release();
mNextPlayer.release();
if (mItemPlayer != null)
mItemPlayer.release();
if (mNextPlayer != null)
mNextPlayer.release();
}
@Override
public void reset() {
mItemPlayer.reset();
mNextPlayer.reset();
if (mItemPlayer != null)
mItemPlayer.reset();
if (mNextPlayer != null)
mNextPlayer.reset();
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册