camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: NullPointerException in ExchangeHelper.convertToType
Date Wed, 30 Jun 2010 08:00:15 GMT
On Wed, Jun 30, 2010 at 9:36 AM, Mikael Vik <mikael.vik@gmail.com> wrote:
>
> 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;
> }

Good idea I have committed such an improvement.


>
>
> --
> 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.
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message