Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-642

UIXTable.createCollectionModel throws null pointer exception if selectedRowKeys evaluates to null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.1-core
    • 1.0.6-core, 1.2.6-core
    • Components
    • None

    Description

      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

      Attachments

        1. jira-642.patch
          3 kB
          Max Starets

        Activity

          People

            mattcooper Matt Cooper
            mstarets Max Starets
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: