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:29:05 UTC

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

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


      at d4540072f73 CAMEL-19399: camel-cxf - Prevent storing invalid entry in Converter cache on error

This branch includes the following new commits:

     new d4540072f73 CAMEL-19399: camel-cxf - Prevent storing invalid 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 - Prevent storing invalid 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
in repository https://gitbox.apache.org/repos/asf/camel.git

commit d4540072f738f204258f6a6702d3128b291383ad
Author: Nicolas Filotto <nf...@talend.com>
AuthorDate: Mon May 29 16:28:41 2023 +0200

    CAMEL-19399: camel-cxf - Prevent storing invalid 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;