1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-22 08:00:32 +00:00

Added not null check for thumbnail URL before performing comparison

This commit is contained in:
Jacob Hawkins 2024-10-27 17:38:57 +11:00
parent 3a286515f2
commit fef40014a0

View File

@ -160,7 +160,8 @@ public final class PlaylistAppendDialog extends PlaylistDialog {
.subscribe(ignored -> { .subscribe(ignored -> {
successToast.show(); successToast.show();
if (playlist.thumbnailUrl.equals(PlaylistEntity.DEFAULT_THUMBNAIL)) { if (playlist.thumbnailUrl != null
&& playlist.thumbnailUrl.equals(PlaylistEntity.DEFAULT_THUMBNAIL)) {
playlistDisposables.add(manager playlistDisposables.add(manager
.changePlaylistThumbnail(playlist.getUid(), streams.get(0).getUid(), .changePlaylistThumbnail(playlist.getUid(), streams.get(0).getUid(),
false) false)