Skip to content

Commit

Permalink
bandaid for critical 0.1.3 bug patch
Browse files Browse the repository at this point in the history
  • Loading branch information
coneybeare committed Sep 17, 2013
1 parent 53e237c commit 44c7c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UAAppReviewManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ - (void)_incrementCountForKey:(NSString *)incrementKey {
NSString *currentVersionKey = [self keyForUAAppReviewManagerKeyType:UAAppReviewManagerKeyCurrentVersion];
NSString *trackingVersion = [self.userDefaultsObject objectForKey:currentVersionKey];
// New install, or changed keys
if (!trackingVersion) {
if (!trackingVersion || ![trackingVersion isKindOfClass:[NSString class]]) {
trackingVersion = currentVersion;
[self.userDefaultsObject setObject:currentVersion forKey:currentVersionKey];
}
Expand Down

0 comments on commit 44c7c4a

Please sign in to comment.