SCST-GH-2115 Ensure that in a case of KafkaNull we just return a payload
This commit is contained in:
@@ -855,7 +855,7 @@ public class SimpleFunctionRegistry implements FunctionRegistry, FunctionInspect
|
|||||||
else if (input instanceof Message) {
|
else if (input instanceof Message) {
|
||||||
if (((Message) input).getPayload().getClass().getName().equals("org.springframework.kafka.support.KafkaNull")
|
if (((Message) input).getPayload().getClass().getName().equals("org.springframework.kafka.support.KafkaNull")
|
||||||
&& !this.isInputTypeMessage()) { //TODO rework
|
&& !this.isInputTypeMessage()) { //TODO rework
|
||||||
return null;
|
return ((Message) input).getPayload();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (functionInvocationHelper != null) {
|
if (functionInvocationHelper != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user