You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by un...@apache.org on 2004/11/16 22:06:41 UTC

svn commit: rev 76038 - cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/pipeline/impl

Author: unico
Date: Tue Nov 16 13:06:41 2004
New Revision: 76038

Modified:
   cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/pipeline/impl/AbstractCachingProcessingPipeline.java
Log:
prevent NPE

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/pipeline/impl/AbstractCachingProcessingPipeline.java
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/pipeline/impl/AbstractCachingProcessingPipeline.java	(original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/pipeline/impl/AbstractCachingProcessingPipeline.java	Tue Nov 16 13:06:41 2004
@@ -801,7 +801,7 @@
      * Otherwise return <code>null</code>
      */
     public SourceValidity getValidityForEventPipeline() {
-        if (this.cachedResponse != null) {
+        if (this.cachedResponse != null && this.toCacheSourceValidities != null) {
             final AggregatedValidity validity = new AggregatedValidity();
             for (int i=0; i < this.toCacheSourceValidities.length; i++) {
                 validity.add(this.toCacheSourceValidities[i]);