Skip to content

Commit

Permalink
Merge pull request #174 from ZeusWPI/ios/fixes-association-bug
Browse files Browse the repository at this point in the history
Fixes an not instantiated array error
  • Loading branch information
feliciaan committed Aug 29, 2014
2 parents 1eed9e8 + 442b42b commit 6963567
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions iOS/Hydra/PreferencesService.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ - (NSArray *)preferredAssociations
{
NSArray *list = [self.settings objectForKey:kPreferredAssociationsKey];
AssertClassOrNil(list, NSArray);
if (list == nil) {
list = [[NSArray alloc] init];
}
return list;
}

Expand Down

0 comments on commit 6963567

Please sign in to comment.