fix crash when editing a contact while no proxy config

This commit is contained in:
Benjamin Reis 2017-07-12 12:01:02 +02:00
parent 5e8fb806bc
commit c286b23450

View file

@ -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) {