Skip to content
Snippets Groups Projects
Commit 791d99b1 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Check mediasession is not null

(cherry picked from commit 9b3e2799)
parent 9c3d3b7a
No related branches found
No related tags found
No related merge requests found
......@@ -1406,7 +1406,8 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
VLCApplication.runOnMainThread(new Runnable() {
@Override
public void run() {
mMediaSession.setMetadata(bob.build());
if (mMediaSession != null)
mMediaSession.setMetadata(bob.build());
synchronized (ExecutorHolder.updateMeta) {
ExecutorHolder.updateMeta.set(false);
ExecutorHolder.updateMeta.notify();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment