nmdias / FeedKit

An RSS, Atom and JSON Feed parser written in Swift
MIT License
1.19k stars 173 forks source link

Crash if RSS feed is not available #13

Closed saldous closed 7 years ago

saldous commented 7 years ago

I was using the feed from: http://feeds.washingtonpost.com/rss/politics and all was fine, until today when the Washington Post's feed went offline. FeedKit crashes in the guard let statement for some reason, it isn't handling the error correctly.

I can reproduce this in your example project too by replacing the feedURL in FeedTableViewController.swift with the above Washington Post URL.

screen shot 2017-02-14 at 10 54 36 pm
nmdias commented 7 years ago

@saldous this seems to be a duplicate of issue #4

Can you check it out? And if so, can you try and replicate the radar submitted there to see if I can get more people to submit this bug to Apple?

There's also a workaround.

Thanks

saldous commented 7 years ago

Hi @nmdias, thanks, that workaround fixes the issue.