camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boday <ben.o...@initekconsulting.com>
Subject Re: @XPath for an Integer
Date Tue, 24 May 2011 17:43:26 GMT
Stu, I see the issue, the value is evaluated to Double.NaN and then the type
converter further converts it to a primitive int (which defaults to 0,
instead of null).

I logged this JIRA to check for Double.NaN and return null instead of
0...https://issues.apache.org/jira/browse/CAMEL-4011


Stu.C wrote:
> 
> b) is it possible to return a null instead when the element doesn't exist,
> as zero could be a valid value?
> 


-----
Ben O'Day
IT Consultant -http://benoday.blogspot.com

--
View this message in context: http://camel.465427.n5.nabble.com/XPath-for-an-Integer-tp4422095p4422851.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message