Add a safety check for attempting to add unsupported URLs.
parent
f01cfdb4fd
commit
be2316163e
|
@ -393,6 +393,10 @@ NSMutableDictionary * dictionaryWithPropertiesOfObject(id obj, NSArray * filterL
|
||||||
int count = (int) [validURLs count];
|
int count = (int) [validURLs count];
|
||||||
if (xmlData) count += [[xmlData objectForKey:@"entries"] count];
|
if (xmlData) count += [[xmlData objectForKey:@"entries"] count];
|
||||||
|
|
||||||
|
// no valid URLs, or they use an unsupported URL scheme
|
||||||
|
if (!count)
|
||||||
|
return [NSArray array];
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
NSMutableArray *entries = [NSMutableArray arrayWithCapacity:count];
|
NSMutableArray *entries = [NSMutableArray arrayWithCapacity:count];
|
||||||
for (NSURL *url in validURLs)
|
for (NSURL *url in validURLs)
|
||||||
|
|
Loading…
Reference in New Issue