Skip to content

Commit

Permalink
Merge pull request #11651 from u7656655/fix-addtoplaylist-crash
Browse files Browse the repository at this point in the history
Fix crash after adding item to a playlist caused by null thumbnail URL
  • Loading branch information
TobiGr authored Oct 27, 2024
2 parents 3a28651 + fef4001 commit 05a87da
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ private void onPlaylistSelected(@NonNull final LocalPlaylistManager manager,
.subscribe(ignored -> {
successToast.show();

if (playlist.thumbnailUrl.equals(PlaylistEntity.DEFAULT_THUMBNAIL)) {
if (playlist.thumbnailUrl != null
&& playlist.thumbnailUrl.equals(PlaylistEntity.DEFAULT_THUMBNAIL)) {
playlistDisposables.add(manager
.changePlaylistThumbnail(playlist.getUid(), streams.get(0).getUid(),
false)
Expand Down

0 comments on commit 05a87da

Please sign in to comment.