From 1ff2cbfd7b0e948398f66ac3556780191d52ff4a Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Tue, 26 Nov 2019 16:01:34 +0100 Subject: [PATCH] fix crash when add empty entry in sip address and cancle edit a contact --- Classes/ContactDetailsTableView.m | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Classes/ContactDetailsTableView.m b/Classes/ContactDetailsTableView.m index f6b14b10d..1714210e0 100644 --- a/Classes/ContactDetailsTableView.m +++ b/Classes/ContactDetailsTableView.m @@ -258,12 +258,6 @@ (showEmails && section == ContactSections_Email)) { [self removeEmptyEntry:self.tableView section:section animated:NO]; - // the section is empty -> remove titles - if ([[self getSectionData:section] count] == 0) { - [self.tableView - reloadSections:[NSIndexSet indexSetWithIndex:section] - withRowAnimation:animated ? UITableViewRowAnimationFade : UITableViewRowAnimationNone]; - } } } _editButton.enabled = YES;