-
Bug
-
Resolution: Done
-
Major
-
1.0.2.GA, 1.1.RC1, 1.1.RC2
Using the setElement method of org.jboss.resteasy.plugins.providers.atom.Content causes a NullPointerException to be thrown as its value field is never instanciated.
How to reproduce:
Content c = new Content();
c.setElement(new DOMElement("Test"));
The value field is however instanciated if the setText() method is used, and since the value field (a list) is cleared when the setElement method is used this can be used as a workaround.
Workaround:
Content c = new Content();
c.setText("");
c.setElement(new DOMElement("Test"));