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