From 28844af6ff608151db25f3245372e3e8cbae84cc Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Thu, 23 Feb 2023 23:05:54 +0100 Subject: [PATCH] Fix crash in iTunes loader (#6341) --- .../danoeh/antennapod/net/discovery/ItunesTopListLoader.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesTopListLoader.java b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesTopListLoader.java index 0bfc5a863..5fa48458e 100644 --- a/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesTopListLoader.java +++ b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesTopListLoader.java @@ -58,8 +58,9 @@ public class ItunesTopListLoader { List suggestedPodcasts, List subscribedFeeds, int limit) { Set subscribedPodcastsSet = new HashSet<>(); for (Feed subscribedFeed : subscribedFeeds) { - String subscribedTitle = subscribedFeed.getTitle().trim() + " - " + subscribedFeed.getAuthor().trim(); - subscribedPodcastsSet.add(subscribedTitle); + if (subscribedFeed.getTitle() != null && subscribedFeed.getAuthor() != null) { + subscribedPodcastsSet.add(subscribedFeed.getTitle().trim() + " - " + subscribedFeed.getAuthor().trim()); + } } List suggestedNotSubscribed = new ArrayList<>(); for (PodcastSearchResult suggested : suggestedPodcasts) {