Skip to content

Commit

Permalink
fixes a fail case in “k1=v1&k2=” query string parsing throwing exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Evadne Wu committed Mar 13, 2012
1 parent d1534da commit d9c53a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions IRWebAPIHelpers.m
Expand Up @@ -447,6 +447,9 @@ id IRWebAPIKitNumberOrNull (NSNumber *aNumber) {
for (NSUInteger i = 0; i < numberOfRanges; i++) {

NSRange substringRange = [result rangeAtIndex:i];
if (substringRange.location == NSNotFound)
continue;

NSString *substring = [query substringWithRange:substringRange];

if (i == 1)
Expand Down

0 comments on commit d9c53a8

Please sign in to comment.