Initialize latestContacts to empty dict (#1207)

Seeing intermittent segfaults on [latestContacts allKeys].
This could be because latestContacts is initialized async.

//FREEBIE
This commit is contained in:
Michael Kirk 2016-06-09 12:06:10 -07:00 committed by GitHub
parent 2565801c39
commit 78a5355b04
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ typedef BOOL (^ContactSearchBlock)(id, NSUInteger, BOOL *);
if (self) {
life = [TOCCancelTokenSource new];
observableContactsController = [ObservableValueController observableValueControllerWithInitialValue:nil];
latestContactsById = @{};
}
return self;
}