ilene       2002/12/10 19:11:53

  Modified:    java/src/org/apache/xml/dtm/ref Tag: xslt20 DTMNodeList.java
  Log:
  Applying Arun Yadav's ([EMAIL PROTECTED]) patch for bugzilla #15218.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.5.14.1.2.2 +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.5.14.1.2.1
  retrieving revision 1.5.14.1.2.2
  diff -u -r1.5.14.1.2.1 -r1.5.14.1.2.2
  --- DTMNodeList.java  11 Nov 2002 19:51:17 -0000      1.5.14.1.2.1
  +++ DTMNodeList.java  11 Dec 2002 03:11:53 -0000      1.5.14.1.2.2
  @@ -174,6 +174,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
  @@ -181,6 +182,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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to