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

Reply via email to