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 2A3081801F for ; Tue, 12 Jan 2016 19:42:40 +0000 (UTC) Received: (qmail 31197 invoked by uid 500); 12 Jan 2016 19:42:40 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 31162 invoked by uid 500); 12 Jan 2016 19:42:40 -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 31152 invoked by uid 99); 12 Jan 2016 19:42:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2016 19:42:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C49182C14F0 for ; Tue, 12 Jan 2016 19:42:39 +0000 (UTC) Date: Tue, 12 Jan 2016 19:42:39 +0000 (UTC) From: "Skylar Sutton (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (FLEX-35007) Error 1009 in AdvancedListBase after re-binding backing array collection 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-35007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15094626#comment-15094626 ] Skylar Sutton edited comment on FLEX-35007 at 1/12/16 7:41 PM: --------------------------------------------------------------- Possibly related/similar to FLEX-34862? was (Author: skylar.sutton@gmail.com): Possibly related to FLEX-34862? > Error 1009 in AdvancedListBase after re-binding backing array collection > ------------------------------------------------------------------------ > > Key: FLEX-35007 > URL: https://issues.apache.org/jira/browse/FLEX-35007 > Project: Apache Flex > Issue Type: Bug > Components: Advanced Data Grid > Affects Versions: Apache Flex 4.14.1 > Reporter: Skylar Sutton > > h2. Background > We have an advanced datagrid defined as such: > {code:borderStyle=solid} > headerStyleName="headerStyle" > headerSortSeparatorSkin="mx.skins.ProgrammaticSkin" > id="myGrid" > designViewDataType="tree" > displayItemsExpanded="true" > treeColumn="{supersessionTreeGrid.columns[1]}" > width="100%" > maxWidth="{this.width-10}" > height="100%" > dataProvider="{new HierarchicalData(model.myGridData)}" > verticalGridLines="false" > sortableColumns="false" > draggableColumns="false" > borderAlpha="1" > folderClosedIcon="{null}" > folderOpenIcon="{null}" > defaultLeafIcon="{null}" > variableRowHeight="true" > borderVisible="true" > columns="{model.myGridCOlumns}" > > {code} > If the ArrayCollection myGridColumns is rebound, from a click that originates within the grid, we're getting a 1009 error on AdvancedListBase:9250 > {code:title=AdvancedListBase.as:9249|borderStyle=solid} > var rowData:BaseListData = rowMap[item.name]; > lastUID = rowData.uid; > {code} > h2. Root Cause > It appears that the AdvancedListBase is trying to execute a mouseOverHandler event against the OLD row data (prior to the rebind). Since the new row data does not contain the item in question, the rowMap lookup returns a null object, and "rowData.uid" pops a NPE. > The simple fix is to just wrap another null check around that... but I'm not sure if it's symptmatic of something larger (e.g. should the event be supressed higher up?). > h2. Simple Fix > {code:title=AdvancedListBase.as:9247|borderStyle=solid} > ... > if (lastHighlightItemRenderer && highlightUID) > { > var rowData:BaseListData = rowMap[item.name]; > if (!rowData) { > return; > } > lastUID = rowData.uid; > } > ... > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)