You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/08/02 07:25:29 UTC
[camel] branch main updated: camel-cxf - Fixed potential NPE
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 308112f81a9 camel-cxf - Fixed potential NPE
308112f81a9 is described below
commit 308112f81a9ca9e711d2b2596e1f2e19f6c63263
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Aug 2 09:23:37 2022 +0200
camel-cxf - Fixed potential NPE
---
.../java/org/apache/camel/component/cxf/jaxws/DefaultCxfBinding.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/camel-cxf/camel-cxf-soap/src/main/java/org/apache/camel/component/cxf/jaxws/DefaultCxfBinding.java b/components/camel-cxf/camel-cxf-soap/src/main/java/org/apache/camel/component/cxf/jaxws/DefaultCxfBinding.java
index f3b1db11480..9d44c938831 100644
--- a/components/camel-cxf/camel-cxf-soap/src/main/java/org/apache/camel/component/cxf/jaxws/DefaultCxfBinding.java
+++ b/components/camel-cxf/camel-cxf-soap/src/main/java/org/apache/camel/component/cxf/jaxws/DefaultCxfBinding.java
@@ -560,7 +560,7 @@ public class DefaultCxfBinding implements CxfBinding, HeaderFilterStrategyAware
List<Source> elements) {
BindingOperationInfo boi = exchange.getBindingOperationInfo();
- if (boi.isUnwrapped()) {
+ if (boi != null && boi.isUnwrapped()) {
boi = boi.getWrappedOperation();
exchange.put(BindingOperationInfo.class, boi);
}
@@ -568,7 +568,7 @@ public class DefaultCxfBinding implements CxfBinding, HeaderFilterStrategyAware
MessageContentsList answer = new MessageContentsList();
int i = 0;
- if (boi.getOutput() != null) {
+ if (boi != null && boi.getOutput() != null) {
for (MessagePartInfo partInfo : boi.getOutput().getMessageParts()) {
if (elements != null && elements.size() > i) {
answer.put(partInfo, elements.get(i++));