Sunday, 8 September 2013

iOS: HTTP service returning , how to test for this?

iOS: HTTP service returning , how to test for this?

I have an app that relies on a web service that I have no control over.
I'm currently trying to solve a bug.
In a particular case, an asynchronous HTTP request returns
"<null>"
When this happens I get an exception and my app crashes.
I've tried every method I can think of to test for this in an if statement
including comparing various strings, arrays, and testing for the
characters < and >. Essentially I want to break from a method if the value
is found.
Has anyone run into this before, and how did you solve it?
Many thanks :)

No comments:

Post a Comment