sboag 01/07/05 13:24:48
Modified: java/src/org/apache/xpath/functions FuncNormalizeSpace.java
Log:
In executeCharsToContentHandler check first for
DTM.NULL before trying to get the DTM.
Revision Changes Path
1.8 +5 -2
xml-xalan/java/src/org/apache/xpath/functions/FuncNormalizeSpace.java
Index: FuncNormalizeSpace.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xpath/functions/FuncNormalizeSpace.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- FuncNormalizeSpace.java 2001/06/12 19:16:36 1.7
+++ FuncNormalizeSpace.java 2001/07/05 20:24:46 1.8
@@ -118,8 +118,11 @@
if(Arg0IsNodesetExpr())
{
int node = getArg0AsNode(xctxt);
- DTM dtm = xctxt.getDTM(node);
- dtm.dispatchCharactersEvents(node, handler, true);
+ if(DTM.NULL != node)
+ {
+ DTM dtm = xctxt.getDTM(node);
+ dtm.dispatchCharactersEvents(node, handler, true);
+ }
}
else
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]