Skip to content

Commit

Permalink
Added not null check for thumbnail URL before performing comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
u7656655 committed Oct 27, 2024
1 parent 3a28651 commit fef4001
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 fef4001

Please sign in to comment.