Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

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