[ 
https://issues.apache.org/jira/browse/CB-7866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vladimir Kotikov closed CB-7866.
--------------------------------
    Resolution: Cannot Reproduce
      Assignee: Vladimir Kotikov

This doesn't repro with latest `master` version. Closing, [~adobr...@csc.com], 
please reopen if this still occurs.

> [Contacts] pickContact call throws NSRangeException, pickContact does not 
> support "desiredFields" property
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: CB-7866
>                 URL: https://issues.apache.org/jira/browse/CB-7866
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Contacts
>    Affects Versions: 3.5.0
>         Environment: iOS
>            Reporter: Aleksey Dobrushin
>            Assignee: Vladimir Kotikov
>              Labels: ios, triaged
>
> pickContact function on iOS throws following exception 
> {code}
> Exception - Name: NSRangeException Reason: *** -[__NSArrayM objectAtIndex:]: 
> index 0 beyond bounds for empty array
> {code}
> and the exception thrown here:
> {code}
> - (void)pickContact:(CDVInvokedUrlCommand *)command
> {
>     // mimic chooseContact method call with required for us parameters
>     NSArray* desiredFields = [command.arguments objectAtIndex:0 
> withDefault:[NSArray array]];
> ....
> {code}
> Javascript method pick contact method has only success and error handlers as 
> arguments, and does not have desiredFields as argument.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to