You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Michel Pitz (JIRA)" <ji...@apache.org> on 2014/09/09 14:10:28 UTC
[jira] [Commented] (FLEX-26322) invalidIndex error thrown in
LinearLayoutVector when AsyncListView.list property is set before lists
object length property is initialized
[ https://issues.apache.org/jira/browse/FLEX-26322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14126919#comment-14126919 ]
Michel Pitz commented on FLEX-26322:
------------------------------------
Have found another problem on the same Module. But, at this time, without changing states, only opening a TitleWindow and closing, and repeating these steps a few times. After this, reseting all objects and lists of the screen, the error was shown.
Work around: DO NOT instantiate again the lists. Example: myList = new ArrayCollection();
Just erase the source. Example: myList.source = [].
Haven't tried doing the following: myList.lenght.length = 0. In order to truncate the data.
Working fine till now..
> 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.3.4#6332)