diff --git a/Classes/LinphoneUI/UIContactDetailsCell.m b/Classes/LinphoneUI/UIContactDetailsCell.m index 06ae8524b..39b25a77d 100644 --- a/Classes/LinphoneUI/UIContactDetailsCell.m +++ b/Classes/LinphoneUI/UIContactDetailsCell.m @@ -56,7 +56,8 @@ [NSString stringWithFormat:NSLocalizedString(@"Chat with %@", nil), _addressLabel.text]; _callButton.accessibilityLabel = [NSString stringWithFormat:NSLocalizedString(@"Call %@", nil), _addressLabel.text]; // Test presence - Contact* contact = [FastAddressBook getContactWithAddress:(addr)]; + Contact *contact; + contact = addr ? [FastAddressBook getContactWithAddress:(addr)] : NULL; _linphoneImage.hidden = TRUE; if (contact) {