camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1226860 - /camel/trunk/camel-core/src/main/java/org/apache/camel/processor/ChoiceProcessor.java
Date Tue, 03 Jan 2012 16:46:47 GMT
Author: davsclaus
Date: Tue Jan  3 16:46:47 2012
New Revision: 1226860

URL: http://svn.apache.org/viewvc?rev=1226860&view=rev
Log:
Content based router - Only set otherwise processor if given

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/processor/ChoiceProcessor.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/processor/ChoiceProcessor.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/ChoiceProcessor.java?rev=1226860&r1=1226859&r2=1226860&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/processor/ChoiceProcessor.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/processor/ChoiceProcessor.java Tue
Jan  3 16:46:47 2012
@@ -47,7 +47,7 @@ public class ChoiceProcessor extends Ser
 
     public ChoiceProcessor(List<FilterProcessor> filters, Processor otherwise) {
         this.filters = filters;
-        this.otherwise = AsyncProcessorConverterHelper.convert(otherwise);
+        this.otherwise = otherwise != null ? AsyncProcessorConverterHelper.convert(otherwise)
: null;
     }
 
     public void process(Exchange exchange) throws Exception {



Mime
View raw message