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 08:59:47 UTC
[jira] [Created] (CAMEL-6625) potential NPE in CxfConsumer if the
PAYLOAD not match the ServiceModel
Freeman Fang created CAMEL-6625:
-----------------------------------
Summary: 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
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