[ 
http://www.stripesframework.org/jira/browse/STS-736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Gunter closed STS-736.
--------------------------


> 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
>            Assignee: Ben Gunter
>
> 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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-development mailing list
Stripes-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to