Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
Adobe Flex SDK 4.5 (Release)
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
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="
" 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.