2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-29 21:27:40 +00:00

Small change to isolate NPE

We have NPE reports from the line mpris.fetchedAlbumArt(url.toString()).
I'm not sure if it's because mpris is null or url is null. Spliting in two
lines to see where the crash actually happens.
This commit is contained in:
Albert Vaca Cintora 2023-10-07 00:35:43 +02:00
parent a081260620
commit 6379679e2b

View File

@ -384,7 +384,8 @@ internal object AlbumArtCache {
//So notify the mpris plugins of the fetched art
for (mpris in registeredPlugins) {
mpris.fetchedAlbumArt(url.toString())
val stringUrl = url.toString()
mpris.fetchedAlbumArt(stringUrl)
}
} else {
//Mark the fetch as failed in the memory cache