NPE whlie use ServletActionRedirectResult as Result type
--------------------------------------------------------

                 Key: WW-3107
                 URL: https://issues.apache.org/struts/browse/WW-3107
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.1.7
            Reporter: Andrey Vasenin


This bug was appeared after WW-3046
Example
public ServletActionRedirectResult generate()
        throws Exception
{
        ServletActionRedirectResult redirect = new 
ServletActionRedirectResult("/namespace", "someaction", "method");
        redirect.addParameter("param", "value");
        return redirect;
}
After execute this method we have caught NPE in codeplace: 
-----ServletActionRedirectResult.class 
(169 line)
ResultConfig resultConfig = 
invocation.getProxy().getConfig().getResults().get(invocation.getResultCode());
Map resultConfigParams = resultConfig.getParams();
-----ServletActionRedirectResult 
invocation.getResultCode() == null and as result resultConfig == null


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to