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-spring-boot-examples.git

commit 735a862acecf4f4a0410653efef8dc424ae73686
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri May 23 10:40:23 2025 +0200

    Regen
---
 .../java/sample/camel/CustomGeneratedConverterLoader.java         | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git 
a/type-converter/src/generated/java/sample/camel/CustomGeneratedConverterLoader.java
 
b/type-converter/src/generated/java/sample/camel/CustomGeneratedConverterLoader.java
index af9003b..13aeb34 100644
--- 
a/type-converter/src/generated/java/sample/camel/CustomGeneratedConverterLoader.java
+++ 
b/type-converter/src/generated/java/sample/camel/CustomGeneratedConverterLoader.java
@@ -45,7 +45,13 @@ public final class CustomGeneratedConverterLoader implements 
TypeConverterLoader
 
     private void registerConverters(TypeConverterRegistry registry) {
         addTypeConverter(registry, sample.camel.Person.class, byte[].class, 
false,
-            (type, exchange, value) -> 
getCustomGeneratedConverter().toPerson((byte[]) value, exchange));
+            (type, exchange, value) -> {
+                Object answer = 
getCustomGeneratedConverter().toPerson((byte[]) value, exchange);
+                if (false && answer == null) {
+                    answer = Void.class;
+                }
+                return answer;
+            });
     }
 
     private static void addTypeConverter(TypeConverterRegistry registry, 
Class<?> toType, Class<?> fromType, boolean allowNull, 
SimpleTypeConverter.ConversionMethod method) {

Reply via email to