[
https://issues.apache.org/jira/browse/TRINIDAD-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521827
]
Max Starets commented on TRINIDAD-642:
--------------------------------------
I do not believe this issue is critical enough to be fixed on 1.2.1 branch. We
ran into this issue because of the problem in the model layer.
> 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
> 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.