Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

Re: [jdom-interest] SAXOutputter and outputFragment
 causes  NullPointerException

Jason Hunter

2005-09-19

Replies:

Thanks, John. I'll add this into the next-release queue.

-jh-

John Spackman wrote:

> 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.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.