You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ff...@apache.org on 2023/04/13 18:53:29 UTC

[camel] branch main updated: [CAMEL-19160]return null for CxfPayloadConverter fallback converter so that other fallback coverter can get a chance to try (#9859)

This is an automated email from the ASF dual-hosted git repository.

ffang 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 1a0a47bb6a2 [CAMEL-19160]return null for CxfPayloadConverter fallback converter so that other fallback coverter can get a chance to try (#9859)
1a0a47bb6a2 is described below

commit 1a0a47bb6a289ae4e552fd6770c850860e173b90
Author: Freeman(Yue) Fang <fr...@gmail.com>
AuthorDate: Thu Apr 13 14:53:22 2023 -0400

    [CAMEL-19160]return null for CxfPayloadConverter fallback converter so that other fallback coverter can get a chance to try (#9859)
---
 .../org/apache/camel/component/cxf/converter/CxfPayloadConverter.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-cxf/camel-cxf-common/src/main/java/org/apache/camel/component/cxf/converter/CxfPayloadConverter.java b/components/camel-cxf/camel-cxf-common/src/main/java/org/apache/camel/component/cxf/converter/CxfPayloadConverter.java
index 9b5337d7277..e63ac48b80b 100644
--- a/components/camel-cxf/camel-cxf-common/src/main/java/org/apache/camel/component/cxf/converter/CxfPayloadConverter.java
+++ b/components/camel-cxf/camel-cxf-common/src/main/java/org/apache/camel/component/cxf/converter/CxfPayloadConverter.java
@@ -180,8 +180,8 @@ public final class CxfPayloadConverter {
                 // the internal conversion to XML can throw an exception if the content is not XML
                 // ignore this and return MISS_VALUE to indicate that we cannot convert this
             }
-            // no we could not do it currently
-            return (T) MISS_VALUE;
+            // Let other fallback converter try
+            return null;
         }
         // Convert a CxfPayload into something else
         if (CxfPayload.class.isAssignableFrom(value.getClass())) {