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