Bugzilla – Bug 687
java.lang.NullPointerException in HtmlBuilder contructor
Last modified: 2009-11-29 12:45:55 CET
HtmlBuilder constructor sets driver field to null and then calls setXmlnsPolicy() method on it which casues NullPointerException. public HtmlBuilder(SimpleNodeFactory nodeFactory, XmlViolationPolicy xmlPolicy) { super(); this.simpleNodeFactory = nodeFactory; this.treeBuilder = new XOMTreeBuilder(nodeFactory); this.driver = null; this.driver.setXmlnsPolicy(XmlViolationPolicy.ALTER_INFOSET); setXmlPolicy(xmlPolicy); }
Created attachment 130 [details] Commented out driver.setXmlnsPolicy() in HtmlBuilder constructor (it's set in lazyInit()).