[jdom-interest] SAXOutputter and outputFragment causes
NullPointerException
John Spackman
john.spackman at zenesis.com
Thu Sep 15 07:07:43 PDT 2005
Hi,
I'm using SAXOutputter.outputFragment to send an Element without
start/endDocument() but I always get an access violation on the first line
of elementContent() (line 1090). This is because elementContent calls
locator.setNode() and locator is null because outputFragment() does not call
documentLocator(). Because documentLocator()'s comment says this is
deliberate, I changed it to check for locator != null. This also occurs in
element(Element element, NamespaceStack namespaces) line 900 where the same
fix needs to be applied.
John.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20050915/5a74cfd0/attachment.htm
More information about the jdom-interest
mailing list