[ https://issues.apache.org/jira/browse/FLEX-35028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15594664#comment-15594664 ]
Mihai Chira commented on FLEX-35028: ------------------------------------ [~jmclean] and [~flexcapacitor] did you have a test project to reproduce this? We've had it reported by one of our users, and now I'm trying to figure out how it could be reproduced in our application. > Error in DataGrid getHeaderRendererAt(-1) > ----------------------------------------- > > Key: FLEX-35028 > URL: https://issues.apache.org/jira/browse/FLEX-35028 > Project: Apache Flex > Issue Type: Bug > Components: Spark: DataGrid > Reporter: Judah Frangipane > Assignee: Justin Mclean > Fix For: Apache Flex 4.16.0 > > > When using a DataGrid if you click the header and the column index is -1 then > an error is thrown: > {code:actionscript} > // line 917 in GridColumnHeaderGroup.as: > public function getHeaderRendererAt(columnIndex:int):IGridItemRenderer > { > // TODO: fix this: do the work here, rather than the layout > > const view:Group = getColumnHeaderViewAtIndex(columnIndex); > return > GridHeaderViewLayout(view.layout).getHeaderRendererAt(columnIndex); > } > {code} > Apparently the columnIndex is -1 when clicking on the header. > Solution may be to check if index is not -1 and return null if it is > Alternative solution would be check for -1 in gchg_mouseDownDragUpHandler at > line 1112 and not dispatch an event. -- This message was sent by Atlassian JIRA (v6.3.4#6332)