Closed DmitryAE closed 9 years ago
Hello Alexey.
I found a bug.
Contact has no emails/phones (any arrays) but we try to retrieve it.
swift code to create contact: APContact(recordRef: person, fieldMask: .FirstName | .LastName | .Phones | .Emails) ->
[APContact enumerateMultiValueOfProperty:fromRecord:withBlock:] method ->
ABMultiValueRef multiValue = ABRecordCopyValue(recordRef, property);
multiValue is 0x0 in this case but we try to release it at CFRelease(multiValue);
So the the app crashes.
We need something like this:
if (multiValue != nil) { { CFRelease(multiValue); }
Thank you for your work!
Hi! Thank you for feedback. We'll check and fix it.
Thanks! :-)
I am also seeing this issue. Any eta on a release with a fix?
Fixed. Checkout version 0.1.11
Thanks!
Hello Alexey.
I found a bug.
Contact has no emails/phones (any arrays) but we try to retrieve it.
swift code to create contact: APContact(recordRef: person, fieldMask: .FirstName | .LastName | .Phones | .Emails) ->
[APContact enumerateMultiValueOfProperty:fromRecord:withBlock:] method ->
ABMultiValueRef multiValue = ABRecordCopyValue(recordRef, property);
multiValue is 0x0 in this case but we try to release it at CFRelease(multiValue);
So the the app crashes.
We need something like this:
Thank you for your work!