axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-2331) SAAJ API issue
Date Fri, 16 Mar 2007 03:13:09 GMT
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message