You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2014/06/27 20:50:48 UTC
[3/5] git commit: CB-5698 Fix non-compiling code in previous commit
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/337e159c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/tree/337e159c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/diff/337e159c
Branch: refs/heads/master
Commit: 337e159c4232c57b32325b083e1f690aab8c9e46
Parents: f5908a4
Author: Andrew Grieve <ag...@chromium.org>
Authored: Fri Jun 27 14:19:54 2014 -0400
Committer: Ian Clelland <ic...@chromium.org>
Committed: Fri Jun 27 14:32:42 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/337e159c/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