Hi,
Here you can find the patch for bug 10900
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10900).
Morris Kwan
XSLT Development
IBM Toronto Lab
Tel: (905)413-3729
Email: [EMAIL PROTECTED]
Index: org/apache/xpath/functions/FuncCurrent.java
===================================================================
RCS file:
/home/cvspublic/xml-xalan/java/src/org/apache/xpath/functions/FuncCurrent.java,v
retrieving revision 1.8
diff -u -r1.8 FuncCurrent.java
--- org/apache/xpath/functions/FuncCurrent.java 20 Aug 2001 23:48:10 -0000 1.8
+++ org/apache/xpath/functions/FuncCurrent.java 1 Aug 2002 17:45:07 -0000
@@ -102,7 +102,10 @@
// LocPathIterator lpi = iter.getLocPathIterator();
LocPathIterator lpi = xctxt.getCurrentNodeList();
- currentNode = lpi.getCurrentContextNode();
+ if (lpi != null)
+ currentNode = lpi.getCurrentContextNode();
+ else
+ currentNode = DTM.NULL;
}
else if(xctxt.getIteratorRoot() != DTM.NULL)