cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/impl CachingProcessingPipeline.java
Date Wed, 15 Jan 2003 12:04:51 GMT
cziegeler    2003/01/15 04:04:51

  Modified:    src/java/org/apache/cocoon/components/pipeline/impl
                        CachingProcessingPipeline.java
  Log:
  Preventing a NPE
  
  Revision  Changes    Path
  1.32      +5 -1      xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/impl/CachingProcessingPipeline.java
  
  Index: CachingProcessingPipeline.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/impl/CachingProcessingPipeline.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- CachingProcessingPipeline.java	13 Jan 2003 13:12:29 -0000	1.31
  +++ CachingProcessingPipeline.java	15 Jan 2003 12:04:51 -0000	1.32
  @@ -81,6 +81,10 @@
       */
       protected void cacheResults(Environment environment, OutputStream os)  throws Exception
{
           if (this.toCacheKey != null) {
  +            if (this.toCacheSourceValidities == null) {
  +                getLogger().warn("CACHING-ERROR: Cache key is not null:"+this.toCacheKey+"\nbut
sourcevalidities!");
  +                return;
  +            }
               if ( this.cacheCompleteResponse ) {
                   CachedResponse response = new CachedResponse(this.toCacheSourceValidities,
                                             ((CachingOutputStream)os).getContent());
  
  
  

----------------------------------------------------------------------
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