mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-22 09:58:08 +00:00
Fix NPE
This commit is contained in:
parent
144d292948
commit
d951e3faad
@ -280,8 +280,10 @@ public class MprisReceiverPlugin extends Plugin {
|
||||
np.set("canSeek", player.canSeek());
|
||||
np.set("volume", player.getVolume());
|
||||
MprisReceiverCallback cb = playerCbs.get(player.getName());
|
||||
assert cb != null;
|
||||
String artUrl = cb.getArtUrl();
|
||||
String artUrl = null;
|
||||
if (cb != null) {
|
||||
artUrl = cb.getArtUrl();
|
||||
}
|
||||
if (artUrl != null) {
|
||||
np.set("albumArtUrl", artUrl);
|
||||
Log.v(TAG, "Sending metadata with url " + artUrl);
|
||||
|
Loading…
x
Reference in New Issue
Block a user