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

List.createItemRenderer crash when itemRenderer ClassFactory changed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.5 (Release)
    • None
    • mx: List
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Language Found: English

    Description

      In our application it happened when using tree, but it could be created in other components using List.as

      Steps to reproduce:
      1. Populate a Tree/List with data and provide a custom itemRenderer class factory.

      2. Change the class factory and dataProvider at the same time.

      3. List.createItemRenderer() will crash during since Factory is the key and it has been changed.
      delete freeItemRenderersByFactory[factory][renderer];

      Actual Results:
      Crash because the renderer can not be found since it does not exist on that factory dictionary since the class factory was changed and the lookup is using the new factory.

      Expected Results:
      Not crash.

      Seems like a race condition, as sometimes during this process it skips that block of code but in other cases it falls into this block and fails.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: