ushahidi / Ushahidi_iPhone

http://www.ushahidi.com and https://wiki.ushahidi.com/display/forums/Ushahidi+Forums
GNU Lesser General Public License v3.0
125 stars 58 forks source link

Investigate Sync Crash For http://naijahidi.org #58

Closed dalezak closed 11 years ago

dalezak commented 11 years ago

Synchronization for http://naijahidi.org is crashing with the following error:

[NSCFString stringForKey:]: unrecognized selector sent to instance 0x134410a0 2013-04-23 11:02:18.169 Ushahidi[10458:c07] *\ Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFString stringForKey:]: unrecognized selector sent to instance 0x134410a0'

Looks like the problem is related to parsing the data.

dalezak commented 11 years ago

Found the problem :(

In some cases the media is returned as an array, in other case when a single item only a dictionary is returned.

Since the app was expecting an array, it was crashing trying to parse the data.

dalezak commented 11 years ago

naijahidi