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/15 08:50:48 UTC
[jira] [Resolved] (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 ]
Freeman Fang resolved CAMEL-6625.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.12.0
2.11.2
2.10.7
> 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
> Fix For: 2.10.7, 2.11.2, 2.12.0
>
>
> 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