Commit e57a36a9 authored by DanmeiChen's avatar DanmeiChen
Browse files

fix crash of null arrdess

parent 2d0af97d
Pipeline #26565 failed with stage
in 1 minute and 36 seconds
...@@ -303,7 +303,7 @@ static UICompositeViewDescription *compositeDescription = nil; ...@@ -303,7 +303,7 @@ static UICompositeViewDescription *compositeDescription = nil;
} }
cell.uri = _contacts[indexPath.row]; cell.uri = _contacts[indexPath.row];
LinphoneAddress *addr = linphone_address_new(cell.uri.UTF8String); LinphoneAddress *addr = linphone_address_new(cell.uri.UTF8String);
cell.nameLabel.text = [FastAddressBook displayNameForAddress:addr]; cell.nameLabel.text = (addr == nil? cell.uri : [FastAddressBook displayNameForAddress:addr]);
[cell.avatarImage setImage:[FastAddressBook imageForAddress:addr] bordered:YES withRoundedRadius:YES]; [cell.avatarImage setImage:[FastAddressBook imageForAddress:addr] bordered:YES withRoundedRadius:YES];
cell.controllerView = self; cell.controllerView = self;
if(![_admins containsObject:cell.uri]) { if(![_admins containsObject:cell.uri]) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment