You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Olivier Louvignes (JIRA)" <ji...@apache.org> on 2012/07/03 01:14:58 UTC

[jira] [Created] (CB-997) deviceContact.save() crash when organisations is set to [].

Olivier Louvignes created CB-997:
------------------------------------

             Summary: deviceContact.save() crash when organisations is set to [].
                 Key: CB-997
                 URL: https://issues.apache.org/jira/browse/CB-997
             Project: Apache Cordova
          Issue Type: Bug
          Components: CordovaJS
    Affects Versions: 1.9.0
            Reporter: Olivier Louvignes
            Assignee: Filip Maj


I've had recent crashes with contact sync/creation.
Looks like saving a contact with an empty array [] for the organisations param will crash every time :

<NSRangeException> *** -[CDVJKArray objectAtIndex:]: index (0) beyond bounds (0)

Setting it to null solves the issue but it should work as an empty array.

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

        

[jira] [Updated] (CB-997) deviceContact.save() crash when organisations is set to [].

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-997?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-997:
--------------------------------

    Component/s:     (was: CordovaJS)
                 iOS

Seems to be an iOS only issue.
                
> deviceContact.save() crash when organisations is set to [].
> -----------------------------------------------------------
>
>                 Key: CB-997
>                 URL: https://issues.apache.org/jira/browse/CB-997
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.9.0
>            Reporter: Olivier Louvignes
>            Assignee: Filip Maj
>              Labels: contacts
>
> I've had recent crashes with contact sync/creation.
> Looks like saving a contact with an empty array [] for the organisations param will crash every time :
> <NSRangeException> *** -[CDVJKArray objectAtIndex:]: index (0) beyond bounds (0)
> Setting it to null solves the issue but it should work as an empty array.

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

        

[jira] [Resolved] (CB-997) deviceContact.save() crash when organisations is set to [].

Posted by "Becky Gibson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-997?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Becky Gibson resolved CB-997.
-----------------------------

       Resolution: Fixed
    Fix Version/s: Master
                   2.0.0
         Assignee: Becky Gibson  (was: Filip Maj)

Fixed with this commit:  https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=commit;h=7b9b434de9278a251398c77993a40baa175f75f1
                
> deviceContact.save() crash when organisations is set to [].
> -----------------------------------------------------------
>
>                 Key: CB-997
>                 URL: https://issues.apache.org/jira/browse/CB-997
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.9.0
>            Reporter: Olivier Louvignes
>            Assignee: Becky Gibson
>              Labels: contacts
>             Fix For: 2.0.0, Master
>
>
> I've had recent crashes with contact sync/creation.
> Looks like saving a contact with an empty array [] for the organisations param will crash every time :
> <NSRangeException> *** -[CDVJKArray objectAtIndex:]: index (0) beyond bounds (0)
> Setting it to null solves the issue but it should work as an empty array.

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