lukaszlenart commented on code in PR #1201:
URL: https://github.com/apache/struts/pull/1201#discussion_r1957733006
##########
core/src/main/java/org/apache/struts2/ognl/SecurityMemberAccess.java:
##########
@@ -157,44 +157,44 @@ public boolean isAccessible(Map context, Object target,
Member member, String pr
}
}
- if (!checkProxyObjectAccess(target)) {
+ if (target != null && !checkProxyObjectAccess(target)) {
Review Comment:
Thanks, removed!
##########
core/src/main/java/org/apache/struts2/ognl/SecurityMemberAccess.java:
##########
@@ -160,12 +160,12 @@ public boolean isAccessible(Map context, Object target,
Member member, String pr
}
}
- if (!checkProxyObjectAccess(target)) {
+ if (target != null && !checkProxyObjectAccess(target)) {
LOG.warn("Access to proxy is blocked! Target [{}], proxy class
[{}]", target, target.getClass().getName());
return false;
}
- if (!checkProxyMemberAccess(target, member)) {
+ if (target != null && !checkProxyMemberAccess(target, member)) {
Review Comment:
Thanks, removed!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]