Commit 8dd4297a authored by Nicolas Fella's avatar Nicolas Fella

Check if current player is null

parent 1e585595
......@@ -196,7 +196,7 @@ public class MprisMediaSession implements SharedPreferences.OnSharedPreferenceCh
Device device = service.getDevice(notificationDevice);
MprisPlugin.MprisPlayer player;
if (notificationPlayer.isPlaying()) {
if (notificationPlayer != null && notificationPlayer.isPlaying()) {
player = getPlayerFromDevice(device, notificationPlayer);
} else {
player = getPlayerFromDevice(device, null);
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