Commit d6ce0587 authored by Sébastien Toque's avatar Sébastien Toque

prevent a possible crash

parent 2972549d
......@@ -348,7 +348,8 @@ public class AudioService extends Service {
mCurrentMedia = mMediaList.get(position);
}
mLibVLC.readMedia(mCurrentMedia.getPath());
if (mCurrentMedia != null)
mLibVLC.readMedia(mCurrentMedia.getPath());
mHandler.sendEmptyMessage(SHOW_PROGRESS);
showNotification();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment