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

[MUSTFIX]SparkDataGridAutomationImpl bug prevents from using DataGrid automation when dataProvider is set after instantiation.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • Spark Components
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows 7
      Language Found: English

    Description

      Steps to reproduce:
      1. Define a Spark datagrid in an UI (do not set the dataprovider initially)
      2.
      3.

      Actual Results: The SparkDataGridAutomationImpl will throw a Nullpointer exception when it initializes the datagrid. This prevents using automation.

      Expected Results: The SparkDataGridAutomationImpl checks if the dataprovider is already set.

      Workaround (if any): Override the SparkDataGridAutomationImpl method getCompleteRenderersArray() and check if the dataprovider is already set before calling the super method.

      override public function getCompleteRenderersArray():Array
      {
      if (grid.dataProvider == null)

      { return new Array(); }

      return super.getCompleteRenderersArray();
      }

      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: