[ 
https://issues.apache.org/jira/browse/CB-143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13177366#comment-13177366
 ] 

Becky Gibson commented on CB-143:
---------------------------------

Fixed:  
https://github.com/callback/callback-ios/commit/85f578ac212dfd12b9f933d6702cde2c52ec2019

Problem was not the empty string - it was a misplaced end of for loop that 
resulted in attempting to delete the address record more than once.  Also fixed 
another issue that if you included the address.type='' along with the other 
empty fields, the record would not get deleted.  

I think you can work around this crash withOUT my fix.  I think the address 
record will get deleted by just setting the street address to null (not empty) 
as long as the address.type is not 'other'.
                
> Saving a Contact address with an empty streetAddress will crash XCode
> ---------------------------------------------------------------------
>
>                 Key: CB-143
>                 URL: https://issues.apache.org/jira/browse/CB-143
>             Project: Apache Callback
>          Issue Type: Bug
>    Affects Versions: 1.2.0, 1.3.0
>         Environment: XCode 4.2.1
>            Reporter: Olivier Louvignes
>            Priority: Minor
>              Labels: contacts
>
> Trying to delete a contact address field by saving a null item with specific 
> id. Works well for phone/email/url but crashes for address. Seems that 
> streetAddress to null will trigger the crash (BadAccess, etc.)

--
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

        

Reply via email to