diff --git a/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisNowPlayingFragment.java b/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisNowPlayingFragment.java index b2184e72..01c1d7c7 100644 --- a/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisNowPlayingFragment.java +++ b/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisNowPlayingFragment.java @@ -255,7 +255,7 @@ public class MprisNowPlayingFragment extends Fragment implements VolumeKeyListen targetPlayer = mpris.getPlayerStatus(player); updatePlayerStatus(mpris); - if (targetPlayer.isPlaying()) { + if (targetPlayer != null && targetPlayer.isPlaying()) { MprisMediaSession.getInstance().playerSelected(targetPlayer); } }