[ 
https://issues.apache.org/struts/browse/WW-1648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ted Husted updated WW-1648:
---------------------------

    Fix Version/s:     (was: 2.0.4)
                   2.0.3

WW1580 - Update fix version for 2.0.3 


> Restful2ActionMapper has NullPointerException when used with codebehind
> -----------------------------------------------------------------------
>
>                 Key: WW-1648
>                 URL: https://issues.apache.org/struts/browse/WW-1648
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.x, 2.1.x
>            Reporter: Aadi Deshpande
>         Assigned To: Don Brown
>             Fix For: 2.0.3
>
>         Attachments: restful2.patch
>
>
> As described here :
> http://www.nabble.com/-S2--possible-NPE-in-Restful2--tf3022218.html
> The actual error message is :
> java.lang.NullPointerException
> org.apache.struts2.dispatcher.mapper.Restful2ActionMapper.getMapping(Restful2ActionMapper.java:97)
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:393)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)
> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)
> This occurs because restful2 doesn't check to see if the mapping returned by 
> the super call in it's getMapping() method is not null before calling 
> getName() on it.
> The patch just adds a check for null, and returns immediately if that's the 
> case.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to