cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Kotikov (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CB-7866) [Contacts] pickContact call throws NSRangeException, pickContact does not support "desiredFields" property
Date Thu, 12 Nov 2015 13:54:11 GMT

     [ 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, [~adobrush@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-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message