You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2002/06/29 02:40:34 UTC
cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/xslt XSLTProcessorImpl.java
vgritsenko 2002/06/28 17:40:34
Modified: src/java/org/apache/cocoon/components/xslt Tag:
cocoon_2_0_3_branch XSLTProcessorImpl.java
Log:
fix NPE with document()
Revision Changes Path
No revision
No revision
1.18.2.2 +4 -2 xml-cocoon2/src/java/org/apache/cocoon/components/xslt/XSLTProcessorImpl.java
Index: XSLTProcessorImpl.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/xslt/XSLTProcessorImpl.java,v
retrieving revision 1.18.2.1
retrieving revision 1.18.2.2
diff -u -r1.18.2.1 -r1.18.2.2
--- XSLTProcessorImpl.java 16 Jun 2002 22:45:49 -0000 1.18.2.1
+++ XSLTProcessorImpl.java 29 Jun 2002 00:40:34 -0000 1.18.2.2
@@ -486,7 +486,9 @@
}
InputSource is = xslSource.getInputSource();
- includes.add(new Object[]{xslSource.getSystemId(), new Long(xslSource.getLastModified())});
+ if (includes != null) {
+ includes.add(new Object[]{xslSource.getSystemId(), new Long(xslSource.getLastModified())});
+ }
return new StreamSource(is.getByteStream(), is.getSystemId());
} catch (ResourceNotFoundException rnfe) {
// to obtain the same behaviour as when the resource is
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org