Showing
1 changed file
with
4 additions
and
3 deletions
... | @@ -8292,9 +8292,10 @@ static void distanceFunc(sqlite3_context *context, int argc, sqlite3_value **arg | ... | @@ -8292,9 +8292,10 @@ static void distanceFunc(sqlite3_context *context, int argc, sqlite3_value **arg |
8292 | NSLog(@"Beacon scanning is disabled"); | 8292 | NSLog(@"Beacon scanning is disabled"); |
8293 | } | 8293 | } |
8294 | 8294 | ||
8295 | - if ([applicationVariables objectForKey:WL_AUTHENTICATION]) { | 8295 | + id authValueObject = [applicationVariables objectForKey:WL_AUTHENTICATION]; |
8296 | - NSString *authValue = [applicationVariables objectForKey:WL_AUTHENTICATION]; | 8296 | + if (authValueObject && authValueObject != [NSNull null]) { |
8297 | - if (authValue && [authValue isEqualToString:@"JWT"]) { | 8297 | + NSString *authValue = (NSString *)authValueObject; |
8298 | + if ([authValue isEqualToString:@"JWT"]) { | ||
8298 | // AUTHENTICATION key exists and its value is "JWT" | 8299 | // AUTHENTICATION key exists and its value is "JWT" |
8299 | [defaults setBool:YES forKey:WL_IS_JWT_ENABLED]; | 8300 | [defaults setBool:YES forKey:WL_IS_JWT_ENABLED]; |
8300 | } else { | 8301 | } else { | ... | ... |
-
Please register or login to post a comment