Skip to content

Commit

Permalink
Fixes an not instantiated array error
Browse files Browse the repository at this point in the history
  • Loading branch information
feliciaan committed Aug 28, 2014
1 parent 555d2ad commit 442b42b
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 442b42b

Please sign in to comment.