From 442b42bf124d23b292eec4e69409802f94af0fed Mon Sep 17 00:00:00 2001 From: feliciaan Date: Thu, 28 Aug 2014 23:34:25 +0200 Subject: [PATCH] Fixes an not instantiated array error --- iOS/Hydra/PreferencesService.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iOS/Hydra/PreferencesService.m b/iOS/Hydra/PreferencesService.m index f2f1311a..addeff21 100644 --- a/iOS/Hydra/PreferencesService.m +++ b/iOS/Hydra/PreferencesService.m @@ -66,6 +66,9 @@ - (NSArray *)preferredAssociations { NSArray *list = [self.settings objectForKey:kPreferredAssociationsKey]; AssertClassOrNil(list, NSArray); + if (list == nil) { + list = [[NSArray alloc] init]; + } return list; }