mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-29 13:17:43 +00:00
Fix NPE
This commit is contained in:
parent
aae3518bb9
commit
54952f11a5
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user