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
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development