GH-668 Initial NPE fix in RequestProcessor when no path argument provided
This commit is contained in:
@@ -277,9 +277,14 @@ public class RequestProcessor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private Publisher<?> invokeFunction(FunctionWrapper wrapper) {
|
private Publisher<?> invokeFunction(FunctionWrapper wrapper) {
|
||||||
Flux<?> input = Flux.from(wrapper.argument);
|
if (wrapper.argument != null) {
|
||||||
Object result = FunctionWebUtils.invokeFunction(wrapper.function, input, wrapper.function.isInputTypeMessage());
|
Flux<?> input = Flux.from(wrapper.argument);
|
||||||
return Mono.from((Publisher<?>) result);
|
Object result = FunctionWebUtils.invokeFunction(wrapper.function, input, wrapper.function.isInputTypeMessage());
|
||||||
|
return Mono.from((Publisher<?>) result);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return Mono.empty();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user