dankito/Readability4J

NullPointerException in ArticleGrabber

spacecowboy opened this issue · 1 comments

When parsing items in this blog: Android Developers Blog

I get a NullPointerException at

ArrayList(parentOfTopCandidate.children()).forEach { sibling -> // make a copy of children as the may get modified below -> we can get rid of s -= 1 sl -= 1 compared to original source

because the parent of the topCandidate is null. (Hate that Java nullability).

Didn't crash for me with the supplied page, but that definitely an issue, thanks for reporting it to me!

Upcoming version 1.0.6 fixes this.