修复可能出现的空指针异常

This commit is contained in:
zhouhao
2018-12-21 18:58:20 +08:00
parent cf20178cfb
commit f2d401125b

View File

@@ -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