mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-28 12:47:43 +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("canSeek", player.canSeek());
|
||||||
np.set("volume", player.getVolume());
|
np.set("volume", player.getVolume());
|
||||||
MprisReceiverCallback cb = playerCbs.get(player.getName());
|
MprisReceiverCallback cb = playerCbs.get(player.getName());
|
||||||
assert cb != null;
|
String artUrl = null;
|
||||||
String artUrl = cb.getArtUrl();
|
if (cb != null) {
|
||||||
|
artUrl = cb.getArtUrl();
|
||||||
|
}
|
||||||
if (artUrl != null) {
|
if (artUrl != null) {
|
||||||
np.set("albumArtUrl", artUrl);
|
np.set("albumArtUrl", artUrl);
|
||||||
Log.v(TAG, "Sending metadata with url " + artUrl);
|
Log.v(TAG, "Sending metadata with url " + artUrl);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user