Fix crash in iTunes loader (#6341)
This commit is contained in:
parent
240737e3ac
commit
28844af6ff
|
@ -58,8 +58,9 @@ public class ItunesTopListLoader {
|
||||||
List<PodcastSearchResult> suggestedPodcasts, List<Feed> subscribedFeeds, int limit) {
|
List<PodcastSearchResult> suggestedPodcasts, List<Feed> subscribedFeeds, int limit) {
|
||||||
Set<String> subscribedPodcastsSet = new HashSet<>();
|
Set<String> subscribedPodcastsSet = new HashSet<>();
|
||||||
for (Feed subscribedFeed : subscribedFeeds) {
|
for (Feed subscribedFeed : subscribedFeeds) {
|
||||||
String subscribedTitle = subscribedFeed.getTitle().trim() + " - " + subscribedFeed.getAuthor().trim();
|
if (subscribedFeed.getTitle() != null && subscribedFeed.getAuthor() != null) {
|
||||||
subscribedPodcastsSet.add(subscribedTitle);
|
subscribedPodcastsSet.add(subscribedFeed.getTitle().trim() + " - " + subscribedFeed.getAuthor().trim());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
List<PodcastSearchResult> suggestedNotSubscribed = new ArrayList<>();
|
List<PodcastSearchResult> suggestedNotSubscribed = new ArrayList<>();
|
||||||
for (PodcastSearchResult suggested : suggestedPodcasts) {
|
for (PodcastSearchResult suggested : suggestedPodcasts) {
|
||||||
|
|
Loading…
Reference in New Issue