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 AbstractCachingProcessingPipeline.java
Date Mon, 24 Feb 2003 14:20:33 GMT
cziegeler    2003/02/24 06:20:33

  Modified:    src/java/org/apache/cocoon/components/pipeline/impl
                        AbstractCachingProcessingPipeline.java
  Log:
  Fixing NPE reported by Stephan
  
  Revision  Changes    Path
  1.26      +3 -2      xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/impl/AbstractCachingProcessingPipeline.java
  
  Index: AbstractCachingProcessingPipeline.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/impl/AbstractCachingProcessingPipeline.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- AbstractCachingProcessingPipeline.java	31 Jan 2003 22:51:30 -0000	1.25
  +++ AbstractCachingProcessingPipeline.java	24 Feb 2003 14:20:33 -0000	1.26
  @@ -559,7 +559,8 @@
                       final SourceValidity validity = this.getValidityForInternalPipeline(i);
   
                       if (validity == null) {
  -                        if (i > 0 && i > this.fromCacheKey.size()) {
  +                        if (i > 0 
  +                            && (this.fromCacheKey == null || i > this.fromCacheKey.size()))
{
                               // shorten key
                               for(int m=i; m < this.toCacheSourceValidities.length; m++)
{
                                   this.toCacheKey.removeLastKey();
  
  
  

Mime
View raw message