mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 05:37: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);
|
targetPlayer = mpris.getPlayerStatus(player);
|
||||||
updatePlayerStatus(mpris);
|
updatePlayerStatus(mpris);
|
||||||
|
|
||||||
if (targetPlayer.isPlaying()) {
|
if (targetPlayer != null && targetPlayer.isPlaying()) {
|
||||||
MprisMediaSession.getInstance().playerSelected(targetPlayer);
|
MprisMediaSession.getInstance().playerSelected(targetPlayer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user