Hi Mikael,
Are you using the latest Camel 2.4-SNAPSHOT?
I checked the code of ExchangeHelper.java line 153, I don't think there is a
reason to throw the NPE.
public static <T> T convertToType(Exchange exchange, Class<T> type, Object
value) {
CamelContext camelContext = exchange.getContext();
TypeConverter converter = camelContext.getTypeConverter();
if (converter != null ) { <-- 153
return converter.convertTo(type, exchange, value);
}
return null;
}
Can you double check it ?
Willem
----------------------------------
Apache Camel, Apache CXF committer
Open SOA http://www.fusesource.com
Blog http://willemjiang.blogspot.com
Tiwtter http://twitter.com/willemjiang
--
View this message in context:
http://camel.465427.n5.nabble.com/NullPointerException-in-ExchangeHelper-convertToType-tp511642p511681.html
Sent from the Camel - Users mailing list archive at Nabble.com.