mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-08 17:03:39 +08:00
修复可能出现的空指针异常
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user