camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikael Vik <>
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: 

if (value == null) {
    return null;

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message