cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sylv...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/source SitemapSource.java
Date Thu, 11 Apr 2002 15:05:26 GMT
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 <a href="mailto:cziegeler@apache.org">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.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


Mime
View raw message