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

Calling getItemIndicesInView() on a DataGroup with null dataProvider causes RTE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • Adobe Flex SDK Previous
    • Spark: DataGroup
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile and run:
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">
      <s:DataGroup id="group1" creationComplete="trace(group1.getItemIndicesInView())" />
      </s:Application>

      2.
      3.

      Actual Results:

      Main Thread (Suspended: TypeError: Error #1009: Cannot access a property or method of a null object reference.)
      spark.components::DataGroup/getItemIndicesInView
      Repro/__group1_creationComplete
      flash.events::EventDispatcher/dispatchEventFunction [no source]
      flash.events::EventDispatcher/dispatchEvent [no source]
      mx.core::UIComponent/dispatchEvent
      mx.core::UIComponent/set initialized
      mx.managers::LayoutManager/doPhasedInstantiation
      mx.managers::LayoutManager/doPhasedInstantiationCallback

      Expected Results:

      No RTE.

      Workaround (if any):

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: