You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/12/24 14:47:00 UTC

[jira] [Work logged] (WW-5063) Use null check of passed in invocation in all the results

     [ https://issues.apache.org/jira/browse/WW-5063?focusedWorklogId=528169&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-528169 ]

ASF GitHub Bot logged work on WW-5063:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Dec/20 14:46
            Start Date: 24/Dec/20 14:46
    Worklog Time Spent: 10m 
      Work Description: lukaszlenart opened a new pull request #461:
URL: https://github.com/apache/struts/pull/461


   Implements [WW-5063](https://issues.apache.org/jira/browse/WW-5063)


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 528169)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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
>            Priority: Minor
>             Fix For: 2.6
>
>          Time Spent: 10m
>  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)