[jdom-interest] [BUG]

Brett McLaughlin brett.mclaughlin at lutris.com
Tue Sep 19 17:27:45 PDT 2000


Wolfgang Werner wrote:
> 
> Hello,
> 
> I think I found a very small Bug in Element.java:
> 
> If you create an Element without textual content, e.g
> 
>         Element e = new Element("test");
> 
> and put it into an Document, the function
> 
>         e.getText()
> 
> on this element fails with a NullPointerException due to the
> shortcut in the first lines: Access to content.
> 
> A short look at the code reveals that other funtions do a
> test for this before atempting to access the content list.
> 
> Did I miss something? I tested this on the CVS code from
> (i think) two days ago.

I fixed this ... give it a try now with the latest from CVS.

-Brett

> 
> Thanks,
> 
>         Wolfgang Werner
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com

-- 
Brett McLaughlin, Enhydra Strategist
Lutris Technologies, Inc. 
1200 Pacific Avenue, Suite 300 
Santa Cruz, CA 95060 USA 
http://www.lutris.com
http://www.enhydra.org



More information about the jdom-interest mailing list