Skip to content

Commit

Permalink
Merge pull request #313 from BudhirajaRajesh/fix/crash/out-of-bounds
Browse files Browse the repository at this point in the history
Fix: App was crashing due to out of bounds
  • Loading branch information
AishwaryaNanna authored Feb 22, 2024
2 parents 66926ab + 0f05850 commit 11e0b98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CleverTapSDK/CTDeviceInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ - (NSLocale *)systemLocale {
if (!_systemLocale) {
NSLocale *currentLocale = [NSLocale currentLocale];

NSString *language = [[NSLocale preferredLanguages] objectAtIndex:0];
NSString *language = [[NSLocale preferredLanguages] firstObject];
if (!language || [language isEqualToString:@""] ){
language = @"xx";
}
Expand Down

0 comments on commit 11e0b98

Please sign in to comment.