Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 86C311150D for ; Tue, 15 Apr 2014 10:18:19 +0000 (UTC) Received: (qmail 85619 invoked by uid 500); 15 Apr 2014 10:18:19 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 85583 invoked by uid 500); 15 Apr 2014 10:18:15 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 85576 invoked by uid 99); 15 Apr 2014 10:18:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Apr 2014 10:18:14 +0000 Date: Tue, 15 Apr 2014 10:18:14 +0000 (UTC) From: "Gareth Daniel Smith (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FLEX-34226) TypeError when using a spark List with an empty dataProvider within an mx Form MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Gareth Daniel Smith created FLEX-34226: ------------------------------------------ Summary: TypeError when using a spark List with an empty dataProvider within an mx Form Key: FLEX-34226 URL: https://issues.apache.org/jira/browse/FLEX-34226 Project: Apache Flex Issue Type: Bug Components: Spark: List Affects Versions: Apache Flex 4.11.0 Environment: OS X Reporter: Gareth Daniel Smith Priority: Minor 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 -- This message was sent by Atlassian JIRA (v6.2#6252)