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 3879910FB8 for ; Wed, 25 Dec 2013 03:41:58 +0000 (UTC) Received: (qmail 54666 invoked by uid 500); 25 Dec 2013 03:41:55 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 54557 invoked by uid 500); 25 Dec 2013 03:41:52 -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 54542 invoked by uid 99); 25 Dec 2013 03:41:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Dec 2013 03:41:51 +0000 Date: Wed, 25 Dec 2013 03:41:51 +0000 (UTC) From: "Justin Mclean (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (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 [ https://issues.apache.org/jira/browse/FLEX-33990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Justin Mclean reassigned FLEX-33990: ------------------------------------ Assignee: Justin Mclean > 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 > Assignee: Justin Mclean > Priority: Minor > Labels: easyfix, patch > 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 custom itemrenderers and is therefore a subset of the optimumColumns (visible columns). I think an if(r) check will fix the issue. This looks like a timing issue depending on when drawItems() is called. In my app, about 50% of the time, I get the RTE when right after the advancedDataGrid is initialized. See stack below. > var n:int = optimumColumns.length; > for (var i:int = 0; i < n; i++) > { > var r:IListItemRenderer = listItems[rowIndex][i]; > r.validateDisplayList(); > updateDisplayOfItemRenderer(r); > } > AT THIS POINT, listItems[0] (or any row for that matter) has 4 elements representing my custom item renderers only (lengh = 4) while n:int = optimumColumns.length = 16 > STACK: > mx.controls.advancedDataGridClasses::AdvancedDataGridBase/drawItem > mx.controls.listClasses::AdvancedListBase/http://www.adobe.com/2006/flex/mx/internal::clearHighlight > mx.controls.advancedDataGridClasses::AdvancedDataGridBase/http://www.adobe.com/2006/flex/mx/internal::clearHighlight > mx.controls::AdvancedDataGrid/http://www.adobe.com/2006/flex/mx/internal::clearHighlight > mx.controls.listClasses::AdvancedListBase/mouseOutHandler > mx.controls::AdvancedDataGridBaseEx/mouseOutHandler > mx.controls::AdvancedDataGrid/mouseOutHandler -- This message was sent by Atlassian JIRA (v6.1.5#6160)