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: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]