Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33263

FocusOut in datagrid causes RTE if target.parent is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Apache Flex 4.8 (parity release)
    • Apache Flex Next
    • mx: DataGrid
    • None

    Description

      during focusOutHandler, there is a condition that access target.parent.parent without checking if target.parent is null or not.
      There is a quick fix by inverting the 2 last conditions so at line 5017 instead of having

      if (target is IListItemRenderer && target.parent.parent == this && target.parent is ListBaseContentHolder)

      we should have

      if (target is IListItemRenderer && target.parent is ListBaseContentHolder && target.parent.parent == this)

      this way, it will never throw an RTE because if target.parent is null, it will never evaluate the last portion.

      Attachments

        Activity

          People

            cframpton Carol Frampton
            joaofernandes João Fernandes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified