City-of-Bloomington / open311-ios

GeoReporter iOS source code. Native iOS smartphone client app for Open311 API civic issue reporting.
http://open311.org
Other
23 stars 22 forks source link

App crashes during postFailedWithError when network is lost #196

Closed inghamn closed 11 years ago

inghamn commented 11 years ago

If the network connection is lost while the user is filling out the report, the app will crash when trying to post the report. The AFHTTPRequest operation will time out, then get handed to postFailedWithError.

However, this function still tries to read the error message from the response, which is nil, because no network activity happened. The app crashes with a NSInvalidArgumentException on line 202