Author: davsclaus
Date: Wed Jun 30 08:18:14 2010
New Revision: 959224

URL: http://svn.apache.org/viewvc?rev=959224&view=rev
Log:
Ah yeah the boolean issue, as null will have the TC return that as false. So 
revering this commit in rev 959222

Modified:
    
camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java

Modified: 
camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java?rev=959224&r1=959223&r2=959224&view=diff
==============================================================================
--- 
camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java 
(original)
+++ 
camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java 
Wed Jun 30 08:18:14 2010
@@ -127,9 +127,6 @@ public final class DefaultExchange imple
 
     public <T> T getProperty(String name, Class<T> type) {
         Object value = getProperty(name);
-        if (value == null) {
-            return null;
-        }
 
         // eager same instance type test to avoid the overhead of invoking the 
type converter
         // if already same type
@@ -142,9 +139,6 @@ public final class DefaultExchange imple
 
     public <T> T getProperty(String name, Object defaultValue, Class<T> type) {
         Object value = getProperty(name, defaultValue);
-        if (value == null) {
-            return null;
-        }
 
         // eager same instance type test to avoid the overhead of invoking the 
type converter
         // if already same type


Reply via email to