[ http://mc4j.org/jira/browse/STS-407?page=all ]

Ben Gunter resolved STS-407.
----------------------------

    Fix Version/s: Release 1.5
       Resolution: Fixed

> throw exception when field is empty in  ValidationErrors#add() (Patch 
> included)
> -------------------------------------------------------------------------------
>
>                 Key: STS-407
>                 URL: http://mc4j.org/jira/browse/STS-407
>             Project: Stripes
>          Issue Type: Improvement
>          Components: Validation
>    Affects Versions: Release 1.5
>            Reporter: Kai Grabfelder
>         Assigned To: Ben Gunter
>            Priority: Trivial
>             Fix For: Release 1.5
>
>         Attachments: ValidationErrors.patch
>
>
> ValidationErrors#add() should throw an exception if the value for "field" is 
> empty or null. Otherwhise the following exception occurs:
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
>       at 
> net.sourceforge.stripes.localization.LocalizationUtility.makePseudoFriendlyName(LocalizationUtility.java:96)
>       at 
> net.sourceforge.stripes.validation.SimpleError.resolveFieldName(SimpleError.java:120)
>       at 
> net.sourceforge.stripes.validation.SimpleError.getMessage(SimpleError.java:97)
>       at net.sourceforge.stripes.tag.ErrorsTag.doEndTag(ErrorsTag.java:350)
>       at 
> org.apache.jsp.WEB_002dINF.jsp.layout_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.layout_jsp:391)
>       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:80)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>       at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
>       ... 61 more

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

        

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to