You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2023/05/29 14:59:20 UTC

[camel] branch CAMEL-19399/prevent-invalid-cache-enty-on-error-3.20 created (now 1867b0e5583)

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

nfilotto pushed a change to branch CAMEL-19399/prevent-invalid-cache-enty-on-error-3.20
in repository https://gitbox.apache.org/repos/asf/camel.git


      at 1867b0e5583 CAMEL-19399: camel-cxf - Don't add entry in Converter cache on error

This branch includes the following new commits:

     new 1867b0e5583 CAMEL-19399: camel-cxf - Don't add entry in Converter cache on error

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel] 01/01: CAMEL-19399: camel-cxf - Don't add entry in Converter cache on error

Posted by nf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nfilotto pushed a commit to branch CAMEL-19399/prevent-invalid-cache-enty-on-error-3.20
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 1867b0e5583fe735e77743c275959f52c62c75f0
Author: Nicolas Filotto <nf...@talend.com>
AuthorDate: Mon May 29 16:58:47 2023 +0200

    CAMEL-19399: camel-cxf - Don't add entry in Converter cache on error
---
 .../org/apache/camel/component/cxf/converter/CxfPayloadConverter.java    | 1 +
 1 file changed, 1 insertion(+)

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 e63ac48b80b..c984af7c958 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
@@ -179,6 +179,7 @@ public final class CxfPayloadConverter {
             } catch (RuntimeCamelException e) {
                 // 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
+                return (T) MISS_VALUE;
             }
             // Let other fallback converter try
             return null;