mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 15:30:31 +05:30
Fix crash when creating a playlist (closes #3102)
This commit is contained in:
parent
c8d15b9c64
commit
97bd9da857
@ -39,7 +39,7 @@ class PlaylistsAdapter(
|
||||
val playlist = playlists[position]
|
||||
holder.binding.apply {
|
||||
// set imageview drawable as empty playlist if imageview empty
|
||||
if (playlist.thumbnail!!.split("/").size <= 4) {
|
||||
if (playlist.thumbnail.orEmpty().split("/").size <= 4) {
|
||||
playlistThumbnail.setImageResource(R.drawable.ic_empty_playlist)
|
||||
playlistThumbnail.setBackgroundColor(R.attr.colorSurface)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user