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 BC4C110999 for ; Wed, 11 Dec 2013 14:29:23 +0000 (UTC) Received: (qmail 4216 invoked by uid 500); 11 Dec 2013 14:29:23 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 4000 invoked by uid 500); 11 Dec 2013 14:29:19 -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 3820 invoked by uid 99); 11 Dec 2013 14:29:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Dec 2013 14:29:07 +0000 Date: Wed, 11 Dec 2013 14:29:06 +0000 (UTC) From: "Mark Saunders (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FLEX-33990) RTE in AdvancedDataGridBase drawItem MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Mark Saunders created FLEX-33990: ------------------------------------ Summary: RTE in AdvancedDataGridBase drawItem Key: FLEX-33990 URL: https://issues.apache.org/jira/browse/FLEX-33990 Project: Apache Flex Issue Type: Bug Components: ADG:Display Affects Versions: Apache Flex 4.11.0 Environment: Windows 7, Flashbuilder 4.7 (probably irrelevant) Reporter: Mark Saunders Priority: Minor Fix For: Adobe Flex SDK Next The method drawItem() (line 897 of AdvancedDataGridBase) was modified in 4.11. Line 916 was added: r.validateDisplayList(); The issue is that r is null. in the for loop, n is the length of visible columns, while r is derived from listitems[row][i]. the listItems inner array [i] only contains cusom itemrenderers and is therefore a subset of the optimumColumns (visible columns). I think an if(r) check will fix the issue. var n:int = optimumColumns.length; for (var i:int = 0; i < n; i++) { var r:IListItemRenderer = listItems[rowIndex][i]; r.validateDisplayList(); updateDisplayOfItemRenderer(r); } -- This message was sent by Atlassian JIRA (v6.1.4#6159)