You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by il...@apache.org on 2002/12/11 04:06:07 UTC

cvs commit: xml-xalan/java/src/org/apache/xml/dtm/ref DTMNodeList.java

ilene       2002/12/10 19:06:07

  Modified:    java/src/org/apache/xml/dtm/ref DTMNodeList.java
  Log:
  Applying Arun Yadav's (arun.yadav@sun.com) patch for bugzilla #15218.
  
  Revision  Changes    Path
  1.7       +2 -0      xml-xalan/java/src/org/apache/xml/dtm/ref/DTMNodeList.java
  
  Index: DTMNodeList.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/dtm/ref/DTMNodeList.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- DTMNodeList.java	11 Nov 2002 15:58:46 -0000	1.6
  +++ DTMNodeList.java	11 Dec 2002 03:06:07 -0000	1.7
  @@ -161,6 +161,7 @@
         if(dtm_iter!=null)
         {
           int handle=dtm_iter.item(index);
  +        if (handle == DTM.NULL) return null;
           return dtm_iter.getDTM(handle).getNode(handle);
         }
         else
  @@ -168,6 +169,7 @@
           int handle=m_firstChild;
           while(--index>=0 && handle!=DTM.NULL)
             handle=m_parentDTM.getNextSibling(handle);
  +        if (handle == DTM.NULL) return null;
           return m_parentDTM.getNode(handle);
         }
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org