Aleksey Dobrushin created CB-7866:
-------------------------------------

             Summary: [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: iOS
    Affects Versions: 3.5.0
            Reporter: Aleksey Dobrushin


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to