'NSInvalidArgumentException', reason: '-[__NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: nodeContent)'
Using queries like @"//table", @"//td", @"//tr" also crashes, while @"//span", @"//a" do not.
I've put this in a simple, separate class to isolate the issue. The search I'm actually trying to do is @"//div[@class='indent']", which crashes on the above URL and many other TVTropes pages, but does work on for example http://tvtropes.org/pmwiki/pmwiki.php/Film/TheAvengers- but plain @"//div" doesn't work there either.
The following code crashes:
with output:
'NSInvalidArgumentException', reason: '-[__NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: nodeContent)'
Using queries like @"//table", @"//td", @"//tr" also crashes, while @"//span", @"//a" do not.
I've put this in a simple, separate class to isolate the issue. The search I'm actually trying to do is @"//div[@class='indent']", which crashes on the above URL and many other TVTropes pages, but does work on for example http://tvtropes.org/pmwiki/pmwiki.php/Film/TheAvengers- but plain @"//div" doesn't work there either.