You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2005/07/29 00:39:38 UTC

svn commit: r226271 - /cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/PipelineNode.java

Author: vgritsenko
Date: Thu Jul 28 15:39:35 2005
New Revision: 226271

URL: http://svn.apache.org/viewcvs?rev=226271&view=rev
Log:
reset internal error handler in the ProcessingPipeline if <pipeline/> does not have it

Modified:
    cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/PipelineNode.java

Modified: cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/PipelineNode.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/PipelineNode.java?rev=226271&r1=226270&r2=226271&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/PipelineNode.java (original)
+++ cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/PipelineNode.java Thu Jul 28 15:39:35 2005
@@ -131,8 +131,12 @@
         context.inform(this.processingPipeline, this.parameters, env.getObjectModel());
         try {
             if (this.errorHandlerHelper.isInternal()) {
+                // Set internal error handler in the pipeline
                 context.getProcessingPipeline().setErrorHandler(
                         new SitemapErrorHandler(this.errorHandlerHelper, env, context));
+            } else {
+                // Reset internal error handler (previous pipeline might had set it) 
+                context.getProcessingPipeline().setErrorHandler(null);
             }
 
             if (invokeNodes(children, env, context)) {