sylvain 02/04/11 08:07:35
Modified: src/java/org/apache/cocoon/components/source Tag:
cocoon_2_0_3_branch SitemapSource.java
Log:
Fix a bug that prevented the use of Readers with SitemapSource
Revision Changes Path
No revision
No revision
1.9.2.1 +3 -2
xml-cocoon2/src/java/org/apache/cocoon/components/source/SitemapSource.java
Index: SitemapSource.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/source/SitemapSource.java,v
retrieving revision 1.9
retrieving revision 1.9.2.1
diff -u -r1.9 -r1.9.2.1
--- SitemapSource.java 22 Feb 2002 07:00:13 -0000 1.9
+++ SitemapSource.java 11 Apr 2002 15:07:35 -0000 1.9.2.1
@@ -89,7 +89,7 @@
* Description of a source which is defined by a pipeline.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
- * @version CVS $Id: SitemapSource.java,v 1.9 2002/02/22 07:00:13 cziegeler Exp $
+ * @version CVS $Id: SitemapSource.java,v 1.9.2.1 2002/04/11 15:07:35 sylvain Exp $
*/
public final class SitemapSource
@@ -278,7 +278,8 @@
this.environment.changeToLastContext();
String redirectURL = this.environment.getRedirectURL();
if (redirectURL == null) {
- if (this.eventPipeline instanceof CacheableEventPipeline) {
+ if (this.eventPipeline.getGenerator() != null &&
+ this.eventPipeline instanceof CacheableEventPipeline) {
CacheableEventPipeline cep =
(CacheableEventPipeline)this.eventPipeline;
PipelineCacheKey pck = cep.generateKey(this.environment);
Map validity = null;
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]