camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r673105 - /activemq/camel/trunk/components/camel-script/src/main/java/org/apache/camel/builder/script/ScriptBuilder.java
Date Tue, 01 Jul 2008 15:32:10 GMT
Author: jstrachan
Date: Tue Jul  1 08:32:10 2008
New Revision: 673105

URL: http://svn.apache.org/viewvc?rev=673105&view=rev
Log:
fix possible NPE

Modified:
    activemq/camel/trunk/components/camel-script/src/main/java/org/apache/camel/builder/script/ScriptBuilder.java

Modified: activemq/camel/trunk/components/camel-script/src/main/java/org/apache/camel/builder/script/ScriptBuilder.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-script/src/main/java/org/apache/camel/builder/script/ScriptBuilder.java?rev=673105&r1=673104&r2=673105&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-script/src/main/java/org/apache/camel/builder/script/ScriptBuilder.java
(original)
+++ activemq/camel/trunk/components/camel-script/src/main/java/org/apache/camel/builder/script/ScriptBuilder.java
Tue Jul  1 08:32:10 2008
@@ -454,7 +454,7 @@
     }
 
     protected boolean matches(E exchange, Object scriptValue) {
-        return ObjectConverter.toBoolean(scriptValue);
+        return ObjectConverter.toBool(scriptValue);
     }
 
     protected ScriptEngine createScriptEngine() {



Mime
View raw message