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/14 13:48:48 UTC

[camel] branch camel-3.20.x 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 camel-3.20.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.20.x by this push:
     new 0ca55256b9c [CAMEL-19160]return null for CxfPayloadConverter fallback converter so that other fallback coverter can get a chance to try (#9859)
0ca55256b9c is described below

commit 0ca55256b9cecee8fce024eb0b0183bd56aaa1cb
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)
    
    (cherry picked from commit 1a0a47bb6a289ae4e552fd6770c850860e173b90)
---
 .../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())) {