org.apache.camel.Message - hasAttachments is buggy
--------------------------------------------------
Key: CAMEL-1070
URL: https://issues.apache.org/activemq/browse/CAMEL-1070
Project: Apache Camel
Issue Type: Bug
Components: camel-core
Reporter: Claus Ibsen
Fix For: 1.5.1, 2.0.0
I must use
if (exchange.getIn().getAttachments().size() > 0) {
Instead of
if (exchange.getIn().hasAttachments()) {
As the latter always returns false. Or at least returns false even though the
size is > 0
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.