SAAJ API issue
--------------
Key: AXIS2-2331
URL: https://issues.apache.org/jira/browse/AXIS2-2331
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Reporter: Jarek Gawor
One of the SAAJResult constructor has the following code:
this(MessageFactory.newInstance().createMessage());
org.w3c.dom.Node node = this.getNode();
node.removeChild(node.getFirstChild());
this.setNode(null);
However, sometimes there might not be any children nodes so
node.removeChild(null) might be called creating NPE in the parser. So I think
this should at least check if getFirstChild is non null, and call
.removeChild() only then. Also, this probably should remove all child nodes,
not just first one.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]