Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-27575

Cannot refresh DataProvider for Spark DropDownList

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK 4.5 (Release)
    • None
    • Spark: DropDownList
    • 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="

      {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.

      Attachments

        Activity

          People

            paeros Mark Kessler
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: