mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
allow feeds without entries (fix #565)
This commit is contained in:
@@ -67,10 +67,6 @@ public class FeedParser {
|
|||||||
feed.setLink(rss.getLink());
|
feed.setLink(rss.getLink());
|
||||||
List<SyndEntry> items = rss.getEntries();
|
List<SyndEntry> items = rss.getEntries();
|
||||||
|
|
||||||
if (items.isEmpty()) {
|
|
||||||
throw new FeedException("No items in the feed.");
|
|
||||||
}
|
|
||||||
|
|
||||||
for (SyndEntry item : items) {
|
for (SyndEntry item : items) {
|
||||||
FeedEntry entry = new FeedEntry();
|
FeedEntry entry = new FeedEntry();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user