[ 
https://issues.apache.org/jira/browse/FLEX-26322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mihai Chira updated FLEX-26322:
-------------------------------

    Affects Version/s: Apache Flex 4.12.0

> invalidIndex error thrown in LinearLayoutVector when AsyncListView.list 
> property is set before lists object length property is initialized
> ------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-26322
>                 URL: https://issues.apache.org/jira/browse/FLEX-26322
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: Layout
>    Affects Versions: Adobe Flex SDK Previous, Apache Flex 4.12.0
>         Environment: Affected OS(s): All OS Platforms
> Language Found: English
>            Reporter: Adobe JIRA
>
> 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]



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to