You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2007/03/16 14:02:09 UTC
[jira] Resolved: (AXIS2-2331) SAAJ API issue
[ https://issues.apache.org/jira/browse/AXIS2-2331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas resolved AXIS2-2331.
-------------------------------------
Resolution: Fixed
Fixed in svn revision 518962
thanks,
dims
> 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
> Attachments: AXIS2-2331.patch
>
>
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org