From 1e1b010dea3c2a3ae24fa2a1ed3c46024934c82a Mon Sep 17 00:00:00 2001 From: Arthur Ariel Sabintsev Date: Thu, 14 Jul 2016 11:20:04 -0500 Subject: [PATCH] Fixed crash for version not found in iOS app store --- Harpy/Harpy.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Harpy/Harpy.m b/Harpy/Harpy.m index 81681e6..5e61de9 100755 --- a/Harpy/Harpy.m +++ b/Harpy/Harpy.m @@ -210,8 +210,8 @@ - (NSURL *)itunesURL { - (BOOL)isUpdateCompatibleWithDeviceOS:(NSDictionary *)appData { NSArray *> *results = appData[@"results"]; - if (results != nil) { - NSString *requiresOSVersion = results[0][@"minimumOsVersion"]; + if (results.count > 0) { + NSString *requiresOSVersion = [results firstObject][@"minimumOsVersion"]; if (requiresOSVersion != nil) { NSString *systemVersion = [UIDevice currentDevice].systemVersion; if (