Skip to content
This repository has been archived by the owner on Nov 22, 2020. It is now read-only.

Commit

Permalink
Fixed crash for version not found in iOS app store
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtSabintsev committed Jul 14, 2016
1 parent 6f1fc7e commit 1e1b010
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Harpy/Harpy.m
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ - (NSURL *)itunesURL {
- (BOOL)isUpdateCompatibleWithDeviceOS:(NSDictionary<NSString *, id> *)appData {
NSArray<NSDictionary<NSString *, id> *> *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 (
Expand Down

0 comments on commit 1e1b010

Please sign in to comment.