ilene 2002/12/10 19:06:07
Modified: java/src/org/apache/xml/dtm/ref DTMNodeList.java
Log:
Applying Arun Yadav's ([EMAIL PROTECTED]) 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]