From f2d401125b691c037650ef7b4d64c173190e98bd Mon Sep 17 00:00:00 2001 From: zhouhao Date: Fri, 21 Dec 2018 18:58:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=AF=E8=83=BD=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E7=9A=84=E7=A9=BA=E6=8C=87=E9=92=88=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/boost/aop/context/MethodInterceptorHolder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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