From 615fbc5383945df1e9694186c3abaa97a021d02b Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Wed, 7 Jun 2023 18:06:30 +0200 Subject: [PATCH] Fix NPE --- .../kde/kdeconnect/Plugins/MprisPlugin/MprisMediaSession.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisMediaSession.java b/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisMediaSession.java index 6caeb1a0..547cc1dc 100644 --- a/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisMediaSession.java +++ b/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisMediaSession.java @@ -99,7 +99,9 @@ public class MprisMediaSession implements @Override public void onStop() { - notificationPlayer.stop(); + if (notificationPlayer != null) { + notificationPlayer.stop(); + } } @Override