My favorites | Sign in
Project Home
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 38: Problem with NSURL_Extensions when parsing a url that contains a query string param with no value
2 people starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Nov 2010


 
Reported by edwrenb...@gmail.com, Nov 13, 2008
What steps will reproduce the problem?
1. try to get the query dictionary for a url like:
http://maps.google.com/?q=Detroit+DTW+United+States&zoom

What is the expected output? What do you see instead?
The expected output is a dict of key/value pairs. Instead a array index
exception is thrown

Please provide any additional information below.

I solved it with the following change
NSString *theValue = [theKeyValuePairArray count] > 1 ?
[theKeyValuePairArray objectAtIndex:1] : @"";

Nov 1, 2010
Project Member #1 jwight
(No comment was entered for this change.)
Status: Invalid

Powered by Google Project Hosting