[jdom-interest] [BUG]

Wolfgang Werner wwerner at picturesafe.de
Tue Sep 19 13:15:44 PDT 2000


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.

Thanks, 

	Wolfgang Werner



More information about the jdom-interest mailing list