You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Kamran Kashanian (JIRA)" <de...@myfaces.apache.org> on 2010/07/09 02:05:51 UTC
[jira] Updated: (TRINIDAD-1845) NPE in RowKeySetTreeImpl class
[ https://issues.apache.org/jira/browse/TRINIDAD-1845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kamran Kashanian updated TRINIDAD-1845:
---------------------------------------
Status: Patch Available (was: Open)
> NPE in RowKeySetTreeImpl class
> ------------------------------
>
> Key: TRINIDAD-1845
> URL: https://issues.apache.org/jira/browse/TRINIDAD-1845
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 2.0.0-alpha-2
> Environment: All
> Reporter: Kamran Kashanian
> Attachments: rowkeyset.patch
>
>
> The Trinidad RowKeySetTreeImpl class can throw a NullPointerException if it is created with no CollectionModel. For example, an NPE can occur if the set is iterated over while containing a null CollectionModel.
> During state saving, it is possible for RowKeySetTreeImpl to temporarily contain a null CollectionModel before it is fully initialized by the component. Also a user can create a RowKeySetTreeImpl instance in a backing bean and forget to initialize it with a CollectionModel.
> I will provide a patch for this.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.