[jdom-interest] NullPointer in printAttributes? Debug loggin g available?

philip.nelson at omniresources.com philip.nelson at omniresources.com
Wed May 2 08:45:24 PDT 2001

You do need try the latest CVS version before we can help much.  However,
one of the very few places remaining that could cause this is the
setAttributes method of Element.  In the final api, your code would receive
the NPE when it tries to set rather than waiting to blow up on output.  This
is on the todo list but for now look there and test for nulls.

> -----Original Message-----
> From: Rhodes, Phillip C. [mailto:Phillip.Rhodes at alcoa.com]
> Sent: Wednesday, May 02, 2001 10:28 AM
> To: 'jdom-interest at jdom.org'
> Subject: [jdom-interest] NullPointer in printAttributes? Debug logging
> available?
> I get the following error.  Is there a way that I can enable 
> debug logging
> so I can figure out what element or attribute is causing problems?
>      [java] java.lang.NullPointerException
>      [java]     at
> org.jdom.output.XMLOutputter.printAttributes(XMLOutputter.java:389)
>      [java]     at
> org.jdom.output.XMLOutputter.printElement(XMLOutputter.java:321)
>      [java]     at
> org.jdom.output.XMLOutputter.printElement(XMLOutputter.java:344)
>      [java]     at
> org.jdom.output.XMLOutputter.printElement(XMLOutputter.java:344)
>      [java]     at
> org.jdom.output.XMLOutputter.output(XMLOutputter.java:181)
> Thank you.  Cool Tool so far.
> Phillip
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
uraddr at yourhost.com

More information about the jdom-interest mailing list