FBibonne commented on code in PR #1200:
URL: https://github.com/apache/struts/pull/1200#discussion_r1938300707
##########
core/src/main/java/org/apache/struts2/ognl/SecurityMemberAccess.java:
##########
@@ -141,6 +141,10 @@ public void restore(Map context, Object target, Member
member, String propertyNa
public boolean isAccessible(Map context, Object target, Member member,
String propertyName) {
LOG.debug("Checking access for [target: {}, member: {}, property:
{}]", target, member, propertyName);
+ if (member == null){
Review Comment:
If member is null, it can cause others NPE (for example at line 151) and
according the contract of the method a null member is a non sense
--
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]