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 5C87D10505 for ; Mon, 3 Feb 2014 00:16:10 +0000 (UTC) Received: (qmail 98200 invoked by uid 500); 3 Feb 2014 00:16:10 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 98166 invoked by uid 500); 3 Feb 2014 00:16:09 -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 98158 invoked by uid 99); 3 Feb 2014 00:16:09 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Feb 2014 00:16:09 +0000 Date: Mon, 3 Feb 2014 00:16:09 +0000 (UTC) From: "Justin Mclean (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (FLEX-34065) AdvancedDataGrid throws RTE #1009 when groupedColumns is set to null 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-34065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Justin Mclean reassigned FLEX-34065: ------------------------------------ Assignee: Justin Mclean > AdvancedDataGrid throws RTE #1009 when groupedColumns is set to null > -------------------------------------------------------------------- > > Key: FLEX-34065 > URL: https://issues.apache.org/jira/browse/FLEX-34065 > Project: Apache Flex > Issue Type: Bug > Components: Advanced Data Grid > Affects Versions: Apache Flex 4.11.0 > Reporter: Mihai Chira > Assignee: Justin Mclean > Labels: easyfix, easytest > Fix For: Apache Flex 4.12.0 > > > Steps to reproduce: when run, the following application throws "Error #1009: Cannot access a property or method of a null object reference. at mx.controls::AdvancedDataGridBaseEx/commitProperties()..." > > xmlns:fx="http://ns.adobe.com/mxml/2009" > xmlns:s="library://ns.adobe.com/flex/spark"> > > > > > Notes: > * in our application this is happening because OLAPDataGrid.commitProperties() sets "groupedColumns = []" when there are no column axes in the olap data. > * because AdvancedDataGrid relies on visibleHeaderInfos being null in some cases (see AdvancedDataGrid.drawHeaderHorizontalSeparators()), it seems that it's the assumption made by AdvancedDataGridBaseEx.commitProperties() - that visibleHeaderInfos cannot be null - which needs to be changed. So the monkey patch we wrote until we have a fix in the framework replaces > if (horizontalScrollPosition > visibleHeaderInfos.length) > horizontalScrollPosition = visibleHeaderInfos.length - 1; > ...with > var noVisibleColumns:int = visibleHeaderInfos ? visibleHeaderInfos.length : 0; > if (horizontalScrollPosition > noVisibleColumns) > horizontalScrollPosition = noVisibleColumns == 0 ? noVisibleColumns : noVisibleColumns - 1; -- This message was sent by Atlassian JIRA (v6.1.5#6160)