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

DataGrid ItemRenderer - TypeError: Error #1009

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • Spark: DataGrid
    • None
    • Affected OS(s): Mac
      Affected OS(s): Mac OS 10.6
      Browser: Safari
      Language Found: English

    Description

      I'm using build 4.5.0.19786

      Steps to reproduce:

      1. Create a app Flex.

      2. Introduce this code:
      <s:DataGrid>
      <s:columns>
      <s:ArrayList>
      <s:GridColumn>
      <s:itemRenderer>
      <fx:Component>
      <s:Label text="test" />
      </fx:Component>
      </s:itemRenderer>
      </s:GridColumn>
      </s:ArrayList>
      </s:columns>
      </s:DataGrid>

      3. Run the app

      Actual Results:
      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at spark.components::Group/addElement()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\Group.as:1329]
      at spark.components.gridClasses::GridLayout/createTypicalItemRenderer()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:696]
      at spark.components.gridClasses::GridLayout/updateTypicalCellSizes()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:823]
      at spark.components.gridClasses::GridLayout/measure()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:442]
      at spark.components.supportClasses::GroupBase/measure()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\supportClasses\GroupBase.as:1132]
      at mx.core::UIComponent/measureSizes()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:8458]
      at mx.core::UIComponent/validateSize()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:8382]
      at spark.components::Group/validateSize()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\Group.as:1000]
      at mx.managers::LayoutManager/validateSize()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:665]
      at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:792]
      at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]

      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: