forked from Archives/Athou_commafeed
intercept empty feed early on
This commit is contained in:
@@ -43,6 +43,10 @@ public class FeedFetcher {
|
||||
feedUrl = extractedUrl;
|
||||
}
|
||||
}
|
||||
if (result.getContent() == null) {
|
||||
throw new IOException("Feed content is empty.");
|
||||
}
|
||||
|
||||
fetchedFeed = parser.parse(feedUrl, result.getContent());
|
||||
Feed feed = fetchedFeed.getFeed();
|
||||
feed.setLastModifiedHeader(result.getLastModifiedSince());
|
||||
|
||||
Reference in New Issue
Block a user