[
https://issues.apache.org/jira/browse/WW-5063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17255615#comment-17255615
]
ASF subversion and git services commented on WW-5063:
-----------------------------------------------------
Commit f91c558ee867039aee9934254e2f0c73e492a732 in struts's branch
refs/heads/master from Lukasz Lenart
[ https://gitbox.apache.org/repos/asf?p=struts.git;h=f91c558 ]
Merge pull request #461 from apache/WW-5063-null-check
[WW-5063] Adds null check for ActionInvocation
> Use null check of passed in invocation in all the results
> ---------------------------------------------------------
>
> Key: WW-5063
> URL: https://issues.apache.org/jira/browse/WW-5063
> Project: Struts 2
> Issue Type: Improvement
> Components: Core Results
> Reporter: Lukasz Lenart
> Assignee: Lukasz Lenart
> Priority: Minor
> Fix For: 2.6
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Right now in most cases passed in {{invocation}} isn't validated if it isn't
> {{null}}, the below code should be applied to all {{Result}}s
> {code}
> if (invocation == null) {
> throw new IllegalArgumentException("invocation cannot be null!");
> }
> {code}
> This was pointed out during a PR review
> https://github.com/apache/struts/pull/397/files#r396134222
--
This message was sent by Atlassian Jira
(v8.3.4#803005)