GH-1117 Enhance support for function composition to handle null returns
Resolves #1117
This commit is contained in:
@@ -725,7 +725,7 @@ public class SimpleFunctionRegistry implements FunctionRegistry {
|
||||
|
||||
input = this.fluxifyInputIfNecessary(input);
|
||||
|
||||
Object convertedInput = this.convertInputIfNecessary(input, this.inputType);
|
||||
Object convertedInput = input == null ? null : this.convertInputIfNecessary(input, this.inputType);
|
||||
|
||||
if (this.isRoutingFunction() || this.isComposed()) {
|
||||
result = ((Function) this.target).apply(convertedInput);
|
||||
|
||||
Reference in New Issue
Block a user