axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject svn commit: r227034 - /webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMElementImpl.java
Date Tue, 02 Aug 2005 16:33:07 GMT
Author: gdaniels
Date: Tue Aug  2 09:33:02 2005
New Revision: 227034

URL: http://svn.apache.org/viewcvs?rev=227034&view=rev
Log:
Prevent NPE in OMBodyTest

Modified:
    webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMElementImpl.java

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMElementImpl.java?rev=227034&r1=227033&r2=227034&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMElementImpl.java
(original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMElementImpl.java
Tue Aug  2 09:33:02 2005
@@ -515,7 +515,8 @@
      */
     public void setFirstChild(OMNode firstChild) {
         this.firstChild = firstChild;
-        firstChild.setParent(this);
+        if (firstChild != null)
+            firstChild.setParent(this);
     }
 
     /**



Mime
View raw message