camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] [Work started] (CAMEL-6625) potential NPE in CxfConsumer if the PAYLOAD not match the ServiceModel
Date Mon, 12 Aug 2013 07:01:50 GMT

     [ 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

Mime
View raw message