HazelcastComponentHelper. copyHeaders() creates an Out message
--------------------------------------------------------------

                 Key: CAMEL-4472
                 URL: https://issues.apache.org/jira/browse/CAMEL-4472
             Project: Camel
          Issue Type: Bug
          Components: camel-hazelcast
            Reporter: Tomislav Mrkus


Due to lazy creation of Out message in DefaultExchange.getOut() implementation, 
HazelcastComponentHelper.copyHeaders() method inadvertently creates an Out 
message if one has not been set yet, which then creates problems in 
CamelInvocationHandler.getBody() which then returns null as a result. 

There should be a check in copyHeaders() to see if Out exists, e.g.: 

{code}
// set out headers 
if (ex.hasOut()) { 
    ex.getOut().setHeaders(headers); 
} 
{code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to