You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2003/02/24 15:20:33 UTC

cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/impl AbstractCachingProcessingPipeline.java

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();