mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
intercept empty feed early on
This commit is contained in:
@@ -43,6 +43,10 @@ public class FeedFetcher {
|
|||||||
feedUrl = extractedUrl;
|
feedUrl = extractedUrl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (result.getContent() == null) {
|
||||||
|
throw new IOException("Feed content is empty.");
|
||||||
|
}
|
||||||
|
|
||||||
fetchedFeed = parser.parse(feedUrl, result.getContent());
|
fetchedFeed = parser.parse(feedUrl, result.getContent());
|
||||||
Feed feed = fetchedFeed.getFeed();
|
Feed feed = fetchedFeed.getFeed();
|
||||||
feed.setLastModifiedHeader(result.getLastModifiedSince());
|
feed.setLastModifiedHeader(result.getLastModifiedSince());
|
||||||
|
|||||||
Reference in New Issue
Block a user