[ 
http://www.stripesframework.org/jira/browse/STS-736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11909#action_11909
 ] 

Ben Gunter commented on STS-736:
--------------------------------

Jay, that NPE is coming from inside the container. Based on the stack trace, I 
don't see where Stripes is doing anything it should not be doing. What version 
of Tomcat are you using?


> context.getRequest().getParameterMap().size() and .isEmpty() causes a null 
> pointer exception
> --------------------------------------------------------------------------------------------
>
>                 Key: STS-736
>                 URL: http://www.stripesframework.org/jira/browse/STS-736
>             Project: Stripes
>          Issue Type: Bug
>          Components: Context Management
>    Affects Versions: Release 1.5.3
>            Reporter: Jay
>
> When calling the size or isEmpty method on 
> context.getRequest().getParameterMap() we get the following stack trace.  We 
> have a work around to check the request parameter by calling 
> request.getParameterNames().hasMoreElements().  See stack trace below.
> Stack Trace: java.lang.NullPointerException
>         at 
> org.apache.catalina.connector.Request.parseParameters(Request.java:2458)
>         at 
> org.apache.catalina.connector.Request.getParameterNames(Request.java:1082)
>         at 
> org.apache.catalina.connector.Request.getParameterMap(Request.java:1062)
>         at 
> org.apache.catalina.connector.RequestFacade.getParameterMap(RequestFacade.java:414)
>         at 
> net.sourceforge.stripes.controller.MergedParameterMap.getParameterMap(StripesRequestWrapper.java:436)
>         at 
> net.sourceforge.stripes.controller.MergedParameterMap.keySet(StripesRequestWrapper.java:392)
>         at 
> net.sourceforge.stripes.controller.MergedParameterMap.size(StripesRequestWrapper.java:409)

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

        

------------------------------------------------------------------------------

_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to