[ https://issues.apache.org/jira/browse/FLEX-16857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean updated FLEX-16857: --------------------------------- Labels: easytest (was: ) > Value is not a function on null ArrayCollection Sort > ---------------------------------------------------- > > Key: FLEX-16857 > URL: https://issues.apache.org/jira/browse/FLEX-16857 > Project: Apache Flex > Issue Type: Bug > Components: mx: List > Affects Versions: Adobe Flex SDK Previous > Environment: Affected OS(s): All OS Platforms > Language Found: English > Reporter: Adobe JIRA > Labels: easytest > > Steps to reproduce: > var a:ArrayCollection = new ArrayCollection([{a: 1}, {a: 2}]); > var s:Sort = new Sort(); > var sf:SortField = new SortField(); > sf.name = "a"; > a.sort = s; > a.refresh(); > a.sort = null; > a.addItem({a: 3}); // blows up here > Actual Results: > TypeError: Error #1006: value is not a function. > at > mx.collections::ListCollectionView/getFilteredItemIndex()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:564] > at > mx.collections::ListCollectionView/addItemsToView()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:896] > at > mx.collections::ListCollectionView/listChangeHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:1051] > at flash.events::EventDispatcher/dispatchEventFunction() > at flash.events::EventDispatcher/dispatchEvent() > at > mx.collections::ArrayList/internalDispatchEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ArrayList.as:510] > at > mx.collections::ArrayList/addItemAt()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ArrayList.as:311] > at > mx.collections::ListCollectionView/addItemAt()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:501] > at > mx.collections::ListCollectionView/addItem()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:470] > > > Expected Results: > > A new object added at the end of the collection source > > Workaround (if any): -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira