FB55/readabilitySAX — Issue #4: TypeError on some pages when searchFurtherPages=true
Author: rretsiem
Created: 2011-12-04 22:34:58+00:00
State: open

Hello,

Just found this great project and have to say thanks for sharing!
I'm using this service in webOS and I get an error when parsing data from e.g. a Engadget article and `searchFurtherPages=true`.

"errorCode":-9999,"exception":"TypeError: Cannot read property '1' of null
at [object Object]._scanLink (/lib/readabilitySAX.js:268:39)
at [object Object].onclosetag (/lib/readabilitySAX.js:388:8)
at Parser._processCloseTag (/lib/Parser.js:237:16)
at Parser._parseTags (/Parser.js:200:43)
at Parser. (/lib/Parser.js:52:7)
at Parser.parseComplete

Article for test: http://www.engadget.com/2011/12/04/whaaa-the-original-motorola-lapdock-can-now-be-yours-for-50/ (but it looks like all articles from Engadget don't work)

If I set `searchFurtherPages=false`nothing is returned as article.

My data flow is: I request the page from a webOS WebService and just send the response to ReadabilitySAX. That works fine for many articles, but not for Engadget ones and maybe also for other sites as well.