axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-2331) SAAJ API issue
Date Fri, 16 Mar 2007 13:02:09 GMT

     [ 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


Mime
View raw message