camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r749955 - /camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/ExpressionType.java
Date Wed, 04 Mar 2009 10:16:17 GMT
Author: davsclaus
Date: Wed Mar  4 10:16:16 2009
New Revision: 749955

URL: http://svn.apache.org/viewvc?rev=749955&view=rev
Log:
Fixed a bug in expression type for predicates, eg when using: when().header("foo") it would
cause a NPE, but using when(header("foo").isNotNull()) works.

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/ExpressionType.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/ExpressionType.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/ExpressionType.java?rev=749955&r1=749954&r2=749955&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/ExpressionType.java
(original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/language/ExpressionType.java
Wed Mar  4 10:16:16 2009
@@ -166,7 +166,7 @@
         if (expressionValue == null) {
             if (expressionType != null) {
                 expressionValue = expressionType.createExpression(routeContext);
-            } else if (getExpression() != null){
+            } else if (getExpression() != null) {
                 ObjectHelper.notNull("language", getLanguage());
                 CamelContext camelContext = routeContext.getCamelContext();
                 Language language = camelContext.resolveLanguage(getLanguage());



Mime
View raw message