[
https://issues.apache.org/jira/browse/FLEX-26322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14047613#comment-14047613
]
Michel Pitz commented on FLEX-26322:
------------------------------------
I've got the same error on my project. Unfortunately, I'm rarely able to
reproduce it. I can't attach the source code here, because it's a big project.
However, here follows how to reproduce the error:
- A Titlewindow that contains a list with itemRenderers.
- A Module, with two states, that opens the Titlewindow (State1: Itens' list,
State2: Item's Details;
- An action is performed by the itemRenderer button on a item of the list.
Then, the titleWindow is closed.
- Change the Module's state to show the list of itens, and return to the item's
details state again.
- Open the Titlewindow and just close it.
The error is shown sometimes, by reproducing those steps.
> 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
> 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)