jhy/jsoup — Issue #162: Table-tag after </html> on framesetpage causes NullPointerException
Author: stim
Created: 2011-12-27 13:40:53+00:00
State: open

I'm parsing third party html, so excuse me for bringing up this bug, but I figured a NullPointerException is not the way to go..

When parsing this piece of (reduced) html:

Index

The TreeBuilder causes an exception:
Exception in thread "main" java.lang.NullPointerException
at org.jsoup.parser.TreeBuilder.resetInsertionMode(TreeBuilder.java:388)
at org.jsoup.parser.TreeBuilderState$9.process(TreeBuilderState.java:873)
at org.jsoup.parser.TreeBuilder.process(TreeBuilder.java:111)
at org.jsoup.parser.TreeBuilder.runParser(TreeBuilder.java:102)
at org.jsoup.parser.TreeBuilder.parse(TreeBuilder.java:53)
at org.jsoup.parser.Parser.parse(Parser.java:24)