diff --git a/hsweb-boost/hsweb-boost-aop/src/main/java/org/hswebframework/web/boost/aop/context/MethodInterceptorHolder.java b/hsweb-boost/hsweb-boost-aop/src/main/java/org/hswebframework/web/boost/aop/context/MethodInterceptorHolder.java index c6d492d00..fcac813aa 100644 --- a/hsweb-boost/hsweb-boost-aop/src/main/java/org/hswebframework/web/boost/aop/context/MethodInterceptorHolder.java +++ b/hsweb-boost/hsweb-boost-aop/src/main/java/org/hswebframework/web/boost/aop/context/MethodInterceptorHolder.java @@ -141,7 +141,7 @@ public class MethodInterceptorHolder { if (args == null) { return Optional.empty(); } - return Optional.of((T) args.get(name)); + return Optional.ofNullable((T) args.get(name)); } @Override