Add test for FunctionAroundWrapper

This commit is contained in:
Oleg Zhurakousky
2021-04-08 17:10:17 +02:00
parent fc42819357
commit 4837efdcca
2 changed files with 89 additions and 1 deletions

View File

@@ -188,7 +188,9 @@ public class SimpleFunctionRegistry implements FunctionRegistry, FunctionInspect
logger.debug("Function '" + functionDefinition + "' is not found in cache");
}
function = this.wrapInAroundAviceIfNecessary(function);
if (function != null) {
function = this.wrapInAroundAviceIfNecessary(function);
}
return (T) function;
}