SCST-GH-2115 Ensure that in a case of KafkaNull we just return a payload

This commit is contained in:
Oleg Zhurakousky
2021-02-22 16:00:54 +01:00
parent ede54e1054
commit a207d0c421

View File

@@ -842,7 +842,7 @@ public class SimpleFunctionRegistry implements FunctionRegistry, FunctionInspect
}
else if (!FunctionTypeUtils.isMessage(type)) {
if (this.payloadIsSpecialType(((Message<?>) value).getPayload())) {
return null;
return ((Message<?>) value).getPayload();
}
if (!((Message<?>) convertedValue).getHeaders().containsKey("scf-sink-url")) {
convertedValue = ((Message<?>) convertedValue).getPayload();