[ 
https://issues.apache.org/jira/browse/CAMEL-21949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-21949.
---------------------------------
    Resolution: Fixed

> camel-core - Type converter with allowNull should be a valid response for 
> ConvertBodyTo
> ---------------------------------------------------------------------------------------
>
>                 Key: CAMEL-21949
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21949
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 4.12.0
>
>
> https://camel.zulipchat.com/#narrow/channel/257298-camel/topic/Convert.20Body.20To.20ignores.20.40Converter.28allowNull.20.3D.20.20true.29/with/511198417
> This is in type converters which is bootleneck and central functionality, so 
> we need to be a bit careful when changing. However we have a few core type 
> converters that allow null, such as converting a NaN to an Integer. (rare 
> situation). But this can be used for testing. 
> A custom type converter that has allowNull = true would has a problem with 
> convertBodyTo. You would need to set it to mandatory = false to workaround 
> this.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to