[
https://issues.apache.org/jira/browse/CB-300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13223689#comment-13223689
]
Shazron Abdullah commented on CB-300:
-------------------------------------
New repo line reference:
https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/Classes/CDVFileTransfer.m#L250
Add a nil check.
> PGFileTransfer crashes with 303 and empty response
> --------------------------------------------------
>
> Key: CB-300
> URL: https://issues.apache.org/jira/browse/CB-300
> Project: Apache Callback
> Issue Type: Bug
> Components: iOS
> Reporter: Shazron Abdullah
> Assignee: Shazron Abdullah
> Fix For: 1.6.0
>
>
> reported by: https://github.com/mckamey
> at: https://github.com/cordova/cordova-ios/issues/3
> It appears that when PhoneGap FileTransfer receives a 303 HTTP status code
> with an empty response body from the remote server, the component crashes
> with an NSInvalidArgumentException.
> Not sure if any of this console dump is helpful...
> 2012-01-09 12:37:31.638 XYZ[12677:707] *** Terminating app due to uncaught
> exception 'NSInvalidArgumentException', reason: '-[__NSCFDictionary
> setObject:forKey:]: attempt to insert nil value (key: response)'
> *** First throw call stack:
> (0x342618bf 0x344b11e5 0x342617b9 0x342617db 0x341ce6bb 0x1a195 0x35c6dc39
> 0x35bc56e9 0x35bc56b3 0x35bc55d5 0x322738a5 0x32268545 0x32268243 0x32268179
> 0x34235b03 0x342352cf 0x34234075 0x341b74dd 0x341b73a5 0x30a3bfcd 0x37638743
> 0x2cd3 0x2c8c)
> terminate called throwing an exception
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira