diff --git a/Classes/ContactDetailsView.m b/Classes/ContactDetailsView.m index 727a19190..d5a7b4f1d 100644 --- a/Classes/ContactDetailsView.m +++ b/Classes/ContactDetailsView.m @@ -222,7 +222,9 @@ } - (void)viewWillDisappear:(BOOL)animated { - [_tableController.tableView removeObserver:self forKeyPath:@"contentSize"]; + if (_tableController && _tableController.tableView && [_tableController.tableView observationInfo]) { + [_tableController.tableView removeObserver:self forKeyPath:@"contentSize"]; + } [super viewWillDisappear:animated]; PhoneMainView.instance.currentName = NULL; if (self.tmpContact) {