[
https://issues.apache.org/jira/browse/CAMEL-16123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17276093#comment-17276093
]
Andrea Cosentino commented on CAMEL-16123:
------------------------------------------
You can skip the producer operation by checking if the body is null directly in
the route, instead of making the component responsible for this. If you want to
use the producer you need to provide a not null body, otherwise the put object
will fail.
> When the message body is null, can it be ignored?
> -------------------------------------------------
>
> Key: CAMEL-16123
> URL: https://issues.apache.org/jira/browse/CAMEL-16123
> Project: Camel
> Issue Type: Improvement
> Components: camel-aws2
> Affects Versions: 3.7.0
> Reporter: fly
> Priority: Major
>
> I found that in method processSingleOp of class AWS2S3Producer, the following
> code was used to get the message body
> Object obj = exchange.getIn ().getMandatoryBody();
> When the body of the message is null, an exception is thrown.
> Can we ignore messages with null body by default, or provide an option for
> end users
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)