You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Udo Schnurpfeil (JIRA)" <de...@myfaces.apache.org> on 2011/05/23 10:41:47 UTC

[jira] [Resolved] (TOBAGO-1000) SimpleSheetState throws NPE if selectable="none" is set

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

Udo Schnurpfeil resolved TOBAGO-1000.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5.0-alpha-3
                   1.0.37
         Assignee: Udo Schnurpfeil

> SimpleSheetState throws NPE if selectable="none" is set
> -------------------------------------------------------
>
>                 Key: TOBAGO-1000
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-1000
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Sandbox
>    Affects Versions: 1.0.35
>         Environment: We use a Snapshot of 1.0.36 to and the error is still there.
>            Reporter: Sven Bunge
>            Assignee: Udo Schnurpfeil
>             Fix For: 1.0.37, 1.5.0-alpha-3
>
>
> We use a tcs:simpleSheet with the attribute 'selectable="none"' and during the rendering a NullPointerException is thrown. (May be relevent: We have an own sheetstate attached.)
> My conclusion from my studies:
> SimpleSheetRenderer:237 :: boolean rowSelected = selectedRows.contains(row); :: throws the NPE -- (btw: The value rowSelected is NOT needed!)
> The UIData put in line 517 'null' to the sheetstate and override an existing empty list. Is this ok? Then the problem is the unchecked usage of this list in the SimpleSheetRenderer class.
> Or do we have to add an empty list to the sheetstate if the expected value in the ComponentAttributeMap is empty. - Or is the problem that there is no list in the map?
> (Line specification is for source of version 1.0.35)

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