You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2013/08/12 09:01:50 UTC

[jira] [Work started] (CAMEL-6625) potential NPE in CxfConsumer if the PAYLOAD not match the ServiceModel

     [ https://issues.apache.org/jira/browse/CAMEL-6625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on CAMEL-6625 started by Freeman Fang.

> potential NPE in CxfConsumer if the PAYLOAD not match the ServiceModel
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-6625
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6625
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxf
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>
> currently in CxfConsumer we have code like
> {code}
>                 BindingOperationInfo boi = cxfExchange.getBindingOperationInfo();
>                 // make sure the "boi" is remained as wrapped in PAYLOAD mode
>                 if (dataFormat == DataFormat.PAYLOAD && boi.isUnwrapped()) {
>                     boi = boi.getWrappedOperation();
>                     cxfExchange.put(BindingOperationInfo.class, boi);
>                 }
> {code}
> however, the boi could be NULL if the message PAYLOAD not match the ServiceModel, which means can't determine the operation from the PAYLOAD, should add a NPE guarder before boi.isUnwrapped to avoid the NPE

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira