Return-Path: Delivered-To: apmail-xml-cocoon-cvs-archive@xml.apache.org Received: (qmail 70206 invoked by uid 500); 11 Apr 2002 15:05:27 -0000 Mailing-List: contact cocoon-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: cocoon-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cocoon-cvs@xml.apache.org Received: (qmail 70171 invoked by uid 500); 11 Apr 2002 15:05:26 -0000 Delivered-To: apmail-xml-cocoon2-cvs@apache.org Date: 11 Apr 2002 15:05:26 -0000 Message-ID: <20020411150526.66106.qmail@icarus.apache.org> From: sylvain@apache.org To: xml-cocoon2-cvs@apache.org Subject: cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/source SitemapSource.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N sylvain 02/04/11 08:05:25 Modified: src/java/org/apache/cocoon/components/source SitemapSource.java Log: Fix a bug that prevented the use of Readers with SitemapSource Revision Changes Path 1.10 +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.10 diff -u -r1.9 -r1.10 --- SitemapSource.java 22 Feb 2002 07:00:13 -0000 1.9 +++ SitemapSource.java 11 Apr 2002 15:05:25 -0000 1.10 @@ -89,7 +89,7 @@ * Description of a source which is defined by a pipeline. * * @author Carsten Ziegeler - * @version CVS $Id: SitemapSource.java,v 1.9 2002/02/22 07:00:13 cziegeler Exp $ + * @version CVS $Id: SitemapSource.java,v 1.10 2002/04/11 15:05:25 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: 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