Reload the table data after clearing the arrays to avoid potential crash due to asynchronous call to reloadData

This commit is contained in:
QuentinArguillere 2022-06-07 12:33:02 +02:00
parent 52ec19a663
commit 191cc5a234

View file

@ -169,6 +169,7 @@
[_phoneOrAddr removeAllObjects];
[_addressesCached removeAllObjects];
[_ldapContactAddressBookMap removeAllObjects];
[self.tableView reloadData];
_reloadMagicSearch = _reloadMagicSearch || [filter length]==0 || ![[MagicSearchSingleton.instance currentFilter] isEqualToString:filter];
[MagicSearchSingleton.instance setCurrentFilter:filter];