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

HierarchicalCollectionView currentLength calculation bug

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.0 (Release)
    • None
    • SuperCollections
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows 7
      Language Found: English

    Description

      When dragging an item in an ADG which uses a HierarchicalCollectionView instance as the data-provider my application caused a RTE.

      I found out it originates from my application reacting to a collection event before the HierarchicalCollectionView instance does. By setting the openNodes property on the HierarchicalCollectionView (in my event handler), the currentLength is updated, and when the HierarchicalCollectionView instance reacts to the event, it adds +1 to the length for the ADD event.

      Hence the length has increased by two, which is wrong and causes a RTE when accessing a non existing item.

      I am using SDK 3.6. that comes with FB 4.5

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: