Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK Previous, Apache Flex 4.12.0
-
None
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
Simple application source code that reproduces the problem is available here: https://acrobat.com/#d=g3465k8JoP6-B4ws3JuhKw
Workaround (if any):
Set AsyncListView.list property after lists object is initialized and its length value is set.
This is the strack trace of the error:
Error: invalidIndex
at spark.layouts.supportClasses::LinearLayoutVector/remove()[E:\dev\hero_private\frameworks\projects\spark\src\spark\layouts\supportClasses\LinearLayoutVector.as:541]
at spark.layouts::VerticalLayout/elementRemoved()[E:\dev\hero_private\frameworks\projects\spark\src\spark\layouts\VerticalLayout.as:1395]
at spark.components::DataGroup/http://www.adobe.com/2006/flex/mx/internal::itemRemoved()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\DataGroup.as:1599]
at spark.components::DataGroup/adjustAfterReplace()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\DataGroup.as:1825]
at spark.components::DataGroup/http://www.adobe.com/2006/flex/mx/internal::dataProvider_collectionChangeHandler()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\DataGroup.as:1713]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.utils::OnDemandEventDispatcher/dispatchEvent()[E:\dev\hero_private\frameworks\projects\framework\src\mx\utils\OnDemandEventDispatcher.as:71]
at mx.collections::AsyncListView/handleCollectionChangeEvent()[E:\dev\hero_private\frameworks\projects\framework\src\mx\collections\AsyncListView.as:210]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.collections::ArrayList/setItemAt()[E:\dev\hero_private\frameworks\projects\framework\src\mx\collections\ArrayList.as:344]