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.

Reply via email to