Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XMLDictionary Crashing when being used within NSURLSessionDataTask Completion block #38

Open
RollingGoron opened this issue May 19, 2015 · 0 comments

Comments

@RollingGoron
Copy link

I'm trying to use XMLDictionary to parse some RSS feeds within the NSURLSessionDataTask completion block. When using XMLData about 1/2 the RSS feeds crash XMLDictionary with "BAD_ACCESS". I tried to solve this by converting the NSData to NSString and using XMLString. This solved the "BAD_ACCESS" issue but now I'm getting "[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array" Specifically with this RSS Feed: http://feeds.ign.com/ignfeeds/podcasts/wii/

Now, if I parse the RSS feed OUTSIDE of the completion block, it works fine no problem. But when I try and parse it within the Completion block, I get s crashes.

Any idea how to solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant