You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/06/27 20:20:18 UTC

git commit: CB-5698 Fix non-compiling code in previous commit

Repository: cordova-plugin-contacts
Updated Branches:
  refs/heads/master 1b012391a -> e502df5d9


CB-5698 Fix non-compiling code in previous commit


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/e502df5d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/tree/e502df5d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/diff/e502df5d

Branch: refs/heads/master
Commit: e502df5d9b15ab77411247975242107c4303b41a
Parents: 1b01239
Author: Andrew Grieve <ag...@chromium.org>
Authored: Fri Jun 27 14:19:54 2014 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Fri Jun 27 14:19:54 2014 -0400

----------------------------------------------------------------------
 src/ios/CDVContact.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/e502df5d/src/ios/CDVContact.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVContact.m b/src/ios/CDVContact.m
index 90310e1..58a6310 100644
--- a/src/ios/CDVContact.m
+++ b/src/ios/CDVContact.m
@@ -1327,9 +1327,9 @@ static NSDictionary* org_apache_cordova_contacts_defaultFields = nil;
     if (ABPersonHasImageData(self.record)) {
         CFDataRef photoData = ABPersonCopyImageData(self.record);
         if (!photoData) {
-            return;
+            return nil;
         }
-        
+
         NSData* data = (__bridge NSData*)photoData;
         // write to temp directory and store URI in photos array
         // get the temp directory path