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

TypeError when using a spark List with an empty dataProvider within an mx Form

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Apache Flex 4.11.0
    • None
    • Spark: List
    • OS X

    Description

      I will attach an example that throws a TypeError because the item renderer is passed an object that is not an instance of Point.

      I suspect the dodgy code is here: https://github.com/apache/flex-sdk/blob/323882d8a2619046e3833ae5e7033e7d9a70b4a1/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as#L311

      Note that the mx List uses null instead of {} for the dummy element: https://github.com/apache/flex-sdk/blob/323882d8a2619046e3833ae5e7033e7d9a70b4a1/frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as#L1475

      Attachments

        1. empty-list-in-form-bug.zip
          981 kB
          Gareth Daniel Smith

        Activity

          People

            Unassigned Unassigned
            garethdanielsmith Gareth Daniel Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: