You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "fly (Jira)" <ji...@apache.org> on 2021/02/01 06:31:00 UTC
[jira] [Created] (CAMEL-16123) When the message body is null, can
it be ignored?
fly created CAMEL-16123:
---------------------------
Summary: 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
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)