You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2014/09/15 01:56:42 UTC

git commit: CB-7546 - [Contacts][iOS] pickContact shows exception in the console log

Repository: cordova-plugin-contacts
Updated Branches:
  refs/heads/master d395664b0 -> c3c6be2fe


CB-7546 - [Contacts][iOS] pickContact shows exception in the console log


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/commit/c3c6be2f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/tree/c3c6be2f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/diff/c3c6be2f

Branch: refs/heads/master
Commit: c3c6be2fe05d343dce4e28db5ea58fb8300e1c6e
Parents: d395664
Author: Shazron Abdullah <sh...@apache.org>
Authored: Sun Sep 14 16:56:35 2014 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Sun Sep 14 16:56:35 2014 -0700

----------------------------------------------------------------------
 src/ios/CDVContacts.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/c3c6be2f/src/ios/CDVContacts.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVContacts.m b/src/ios/CDVContacts.m
index 1f850ee..f7fb99d 100644
--- a/src/ios/CDVContacts.m
+++ b/src/ios/CDVContacts.m
@@ -192,7 +192,7 @@
 - (void)pickContact:(CDVInvokedUrlCommand *)command
 {
     // mimic chooseContact method call with required for us parameters
-    NSArray* desiredFields = [command.arguments objectAtIndex:0 withDefault:[NSNull null]];
+    NSArray* desiredFields = [command.arguments objectAtIndex:0 withDefault:[NSArray array]];
     if (desiredFields == nil || desiredFields.count == 0) {
         desiredFields = [NSArray arrayWithObjects:@"*", nil];
     }