From fef40014a0da63aa264448c676a519ffa1d00bbf Mon Sep 17 00:00:00 2001 From: Jacob Hawkins Date: Sun, 27 Oct 2024 17:38:57 +1100 Subject: [PATCH] Added not null check for thumbnail URL before performing comparison --- .../org/schabi/newpipe/local/dialog/PlaylistAppendDialog.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/local/dialog/PlaylistAppendDialog.java b/app/src/main/java/org/schabi/newpipe/local/dialog/PlaylistAppendDialog.java index e7f73079f..478ef8039 100644 --- a/app/src/main/java/org/schabi/newpipe/local/dialog/PlaylistAppendDialog.java +++ b/app/src/main/java/org/schabi/newpipe/local/dialog/PlaylistAppendDialog.java @@ -160,7 +160,8 @@ public final class PlaylistAppendDialog extends PlaylistDialog { .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)