[
https://issues.apache.org/jira/browse/FLEX-27575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Mclean updated FLEX-27575:
---------------------------------
Labels: easytest (was: )
> Cannot refresh DataProvider for Spark DropDownList
> --------------------------------------------------
>
> Key: FLEX-27575
> URL: https://issues.apache.org/jira/browse/FLEX-27575
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: DropDownList
> Affects Versions: Adobe Flex SDK 4.5 (Release)
> Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
> Reporter: Adobe JIRA
> Labels: easytest
>
> Steps to reproduce:
> 1. Use the following test Application
> <?xml version="1.0" encoding="utf-8"?>
> <s:Application
> xmlns:fx="http://ns.adobe.com/mxml/2009"
> xmlns:s="library://ns.adobe.com/flex/spark">
>
> <fx:Declarations>
> <s:ArrayCollection id="dataProvider">
> <fx:Number>1</fx:Number>
> <fx:Number>2</fx:Number>
> <fx:Number>3</fx:Number>
> </s:ArrayCollection>
> </fx:Declarations>
>
> <fx:Script>
> <![CDATA[
> import spark.events.IndexChangeEvent;
>
>
> private function handleIndexChange(event:
> IndexChangeEvent): void {
> dataProvider.refresh();
> }
>
> ]]
> >
> </fx:Script>
>
> <s:Group width="500" height="500" horizontalCenter="0"
> verticalCenter="0">
> <s:DropDownList
> dataProvider="{dataProvider}" selectedIndex="0"
> change="handleIndexChange(event)"
> />
> </s:Group>
> </s:Application>
> 2. Select value from DropDownList
>
> Actual Results:
> TypeError: Error #1009: Cannot access a property or method of a null object
> reference.
> at
> Function/<anonymous>()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\List.as:1398]
>
> Expected Results:
> -
>
> Workaround (if any):
> -
> Notes:
> List.dataProviderRefreshed() creates functions which in their turn use
> optional "dataGroup" skin part. SkinPart is already removed by the time
> aforementioned function executes.
>
--
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