From c286b234503ed003346e66fc9b34bb59e78e7688 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Wed, 12 Jul 2017 12:01:02 +0200 Subject: [PATCH] fix crash when editing a contact while no proxy config --- Classes/LinphoneUI/UIContactDetailsCell.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {