2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-22 01:51:47 +00:00

Fix NPE if displayArt changes while getArtAsArray is running

This commit is contained in:
Albert Vaca Cintora 2025-05-26 18:42:37 +02:00
parent d5c47a1c4c
commit 17010e533f
No known key found for this signature in database

View File

@ -200,6 +200,7 @@ class MprisReceiverCallback extends MediaController.Callback {
* @return null if no art is available, otherwise a PNG image serialized into a bytearray
*/
public byte[] getArtAsArray() {
Bitmap displayArt = this.displayArt;
if (displayArt == null) {
return null;
}