You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Massimo Lusetti (JIRA)" <ji...@apache.org> on 2011/08/12 11:58:27 UTC

[jira] [Closed] (TAP5-299) NPE in SelectModelRenderer when Palette used with mismatched values and model

     [ https://issues.apache.org/jira/browse/TAP5-299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Massimo Lusetti closed TAP5-299.
--------------------------------

    Resolution: Invalid

Please open a new one for 5.3 if this still applicable and has relevance

> NPE in SelectModelRenderer when Palette used with mismatched values and model
> -----------------------------------------------------------------------------
>
>                 Key: TAP5-299
>                 URL: https://issues.apache.org/jira/browse/TAP5-299
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.15
>            Reporter: Dan Adams
>
> Create a model with A,B as the available options and set the palette value parameter to a list with C. You will get a NPE here:
> org.apache.tapestry5.internal.util.SelectModelRenderer.option(SelectModelRenderer.java:49)
> org.apache.tapestry5.corelib.components.Palette$SelectedRenderer.render(Palette.java:147)
> because valueToOptionModel in Palette doesn't contain a mapping for C.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira