camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikael Vik <mikael....@gmail.com>
Subject Re: NullPointerException in ExchangeHelper.convertToType
Date Wed, 30 Jun 2010 07:36:10 GMT

Thanks for all your help. I got the error in a testing context, and it was
the camelContext on line 153 which was null. My bad.

How about some more eager checking to discover if the value is null instead
of failing in the try/catch clause in DefaultTypeConverter? For instance
somewhere around here: 

org.apache.camel.impl.DefaultExchange.getProperty(DefaultExchange.java:128
if (value == null) {
    return null;
}


-- 
View this message in context: http://camel.465427.n5.nabble.com/NullPointerException-in-ExchangeHelper-convertToType-tp511642p512022.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message