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:26 UTC

svn commit: rev 76037 - cocoon/trunk/src/java/org/apache/cocoon/components/pipeline/impl

Author: unico
Date: Tue Nov 16 13:06:25 2004
New Revision: 76037

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

Modified: cocoon/trunk/src/java/org/apache/cocoon/components/pipeline/impl/AbstractCachingProcessingPipeline.java
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/components/pipeline/impl/AbstractCachingProcessingPipeline.java	(original)
+++ cocoon/trunk/src/java/org/apache/cocoon/components/pipeline/impl/AbstractCachingProcessingPipeline.java	Tue Nov 16 13:06:25 2004
@@ -781,7 +781,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]);