mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 13:47:41 +00:00
Fix NPE
This commit is contained in:
@@ -255,7 +255,7 @@ public class MprisNowPlayingFragment extends Fragment implements VolumeKeyListen
|
|||||||
targetPlayer = mpris.getPlayerStatus(player);
|
targetPlayer = mpris.getPlayerStatus(player);
|
||||||
updatePlayerStatus(mpris);
|
updatePlayerStatus(mpris);
|
||||||
|
|
||||||
if (targetPlayer.isPlaying()) {
|
if (targetPlayer != null && targetPlayer.isPlaying()) {
|
||||||
MprisMediaSession.getInstance().playerSelected(targetPlayer);
|
MprisMediaSession.getInstance().playerSelected(targetPlayer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user