[
https://issues.apache.org/jira/browse/TRINIDAD-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matt Cooper updated TRINIDAD-642:
---------------------------------
Resolution: Fixed
Fix Version/s: 1.2.6-core
1.0.6-core
Status: Resolved (was: Patch Available)
Fixed under these revisions:
trinidad/trunk revision 614388
trinidad/trunk_1.2.x revision 614381
trinidad/branches/1.2.4.1-branch revision 614383
trinidad/branches/1.2.5.1-branch revision 614385
> UIXTable.createCollectionModel throws null pointer exception if
> selectedRowKeys evaluates to null
> -------------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-642
> URL: https://issues.apache.org/jira/browse/TRINIDAD-642
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 1.2.1-core
> Reporter: Max Starets
> Assignee: Matt Cooper
> Fix For: 1.0.6-core, 1.2.6-core
>
> Attachments: jira-642.patch
>
>
> UIXTable.createCollectionModel() expects that selectedRowKeys and
> disclosedRowKeys are always non-null.
> To avoid null-pointer exceptions, we need two fixes:
> 1) Call _init() in UIXCollection.invokeOnComponent() to ensure that these
> properties are initialized;
> 2) If the properties are still null in createColelctionModel() (presumably
> because the values were EL-bound and
> got evaluated to null, but the _init() did not proceed because UIXColelction
> has already been initialized), we need
> to manually allocate RowKeySetImpl object and set the properties
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.