Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 47C5C18BFE for ; Thu, 12 Nov 2015 13:54:11 +0000 (UTC) Received: (qmail 22266 invoked by uid 500); 12 Nov 2015 13:54:11 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 22238 invoked by uid 500); 12 Nov 2015 13:54:11 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 22221 invoked by uid 99); 12 Nov 2015 13:54:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2015 13:54:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 019C02C1F58 for ; Thu, 12 Nov 2015 13:54:11 +0000 (UTC) Date: Thu, 12 Nov 2015 13:54:11 +0000 (UTC) From: "Vladimir Kotikov (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CB-7866) [Contacts] pickContact call throws NSRangeException, pickContact does not support "desiredFields" property MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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