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

Tim Fennell resolved STS-579.
-----------------------------

    Resolution: Fixed
      Assignee: Tim Fennell  (was: Aaron Porter)

Fixed.  I've cleaned up the offending code in InputTagSupport.

> multiple <stripes:radio> tags with same name attribute causes NPE
> -----------------------------------------------------------------
>
>                 Key: STS-579
>                 URL: http://www.stripesframework.org/jira/browse/STS-579
>             Project: Stripes
>          Issue Type: Bug
>          Components: Tag Library
>    Affects Versions: Release 1.5
>            Reporter: Michael Day
>            Assignee: Tim Fennell
>             Fix For: Release 1.5
>
>
> Seems when I have two radios with the same name, I get NPE.  One difference I 
> found between 1.4.3 and 1.5rc1 is that all of the attributes except for 
> "type" are cleared out in InputTagSupport#doEndTag().  When I remove that bit 
> of code, everything seems to work...
> HTML code example:
>           <stripes:radio name="response" value="1" />
>           <stripes:radio name="response" value="2" />
> java.lang.NullPointerException
>         at 
> java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:157)
>         at 
> java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:730)
>         at 
> net.sourceforge.stripes.util.bean.PropertyExpression.getExpression(PropertyExpression.java:84)
>         at 
> net.sourceforge.stripes.util.bean.BeanUtil.getEvaluation(BeanUtil.java:112)
>         at 
> net.sourceforge.stripes.util.bean.BeanUtil.getPropertyValue(BeanUtil.java:62)
>         at 
> net.sourceforge.stripes.tag.DefaultPopulationStrategy.getValueFromActionBean(DefaultPopulationStrategy.java:127)
>         at 
> net.sourceforge.stripes.tag.DefaultPopulationStrategy.getValue(DefaultPopulationStrategy.java:70)
>         at 
> net.sourceforge.stripes.tag.InputTagSupport.getOverrideValueOrValues(InputTagSupport.java:90)
>         at 
> net.sourceforge.stripes.tag.InputTagSupport.getSingleOverrideValue(InputTagSupport.java:103)
>         at 
> net.sourceforge.stripes.tag.InputRadioButtonTag.doEndInputTag(InputRadioButtonTag.java:108)
>         at 
> net.sourceforge.stripes.tag.InputTagSupport.doEndTag(InputTagSupport.java:442)
>         ...

-- 
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

        

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to