[ 
https://issues.apache.org/activemq/browse/CAMEL-688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44132#action_44132
 ] 

Freeman Fang commented on CAMEL-688:
------------------------------------

sorry, not complete the subject of this issue, and I have no permission to edit 
it :-(
the subject of this issue should be 
"process method of BeanProcessor should check ExchangePattern before set out 
message"
this part
           if (value != null) {
                exchange.getOut().setBody(value);
           }
the exchange.getOut() might return null if the ExchangePattern is InOnly of 
this Exchange, so get NPE here

shoud be
           if (value != null && 
!exchange.getPattern().equals(ExchangePattern.InOnly)) {
                exchange.getOut().setBody(value);
            }

> process method of should check 
> -------------------------------
>
>                 Key: CAMEL-688
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-688
>             Project: Apache Camel
>          Issue Type: Bug
>            Reporter: Freeman Fang
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to