Add null check for function registration in composite
This commit is contained in:
@@ -315,6 +315,7 @@ public abstract class AbstractComposableFunctionRegistry implements FunctionRegi
|
||||
FunctionRegistration<?> composedRegistration = composableFunctions
|
||||
.stream().reduce((a, z) -> composeFunctions(a, z))
|
||||
.orElseGet(() -> null);
|
||||
if (composedRegistration != null) {
|
||||
composedFunction = composedRegistration.getTarget();
|
||||
if (composedFunction != null && !this.types.containsKey(name)) {
|
||||
this.addType(name, composedRegistration.getType());
|
||||
@@ -332,6 +333,7 @@ public abstract class AbstractComposableFunctionRegistry implements FunctionRegi
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return composedFunction;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user