[ 
https://issues.apache.org/jira/browse/FLEX-32599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13721594#comment-13721594
 ] 

Justin Mclean edited comment on FLEX-32599 at 7/27/13 10:38 AM:
----------------------------------------------------------------

Issue is that columns's headerItems off screen are null.

There is an easy fix in findHeaderRenderer, by checking if the headerItem is 
null and if so moving onto the next column until you find one that is not 
null/on screen.

            for(var i:int=0; i < n; i++)
            {
                headerItem = array[i]["headerItem"];
                                
                if (headerItem == null)
                        continue;
                                
                x = headerItem.x;

Not sure when/how this was introduced.

Want me to apply and test or can you?
                
      was (Author: jmclean):
    Issue is that headerItems of off row off screen are null. There is an easy 
fix in findHeaderRenderer, by checking the headerItem is null and if so moving 
onto the next column until you find one that is one screen.

            for(var i:int=0; i < n; i++)
            {
                headerItem = array[i]["headerItem"];
                                
                if (headerItem == null)
                        continue;
                                
                x = headerItem.x;

Not sure when/how this was introduced.

Want me to apply and test or can you?
                  
> TypeError: Error #1009: Cannot access a property or method of a null object 
> reference.at 
> mx.controls::AdvancedDataGrid/findHeaderRenderer()mx.controls::AdvancedDataGrid/mouseEventToItemRenderer()
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-32599
>                 URL: https://issues.apache.org/jira/browse/FLEX-32599
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Advanced Data Grid
>    Affects Versions: Adobe Flex SDK Previous
>         Environment: Affected OS(s): Windows
> Affected OS(s): 
> Language Found: English
>            Reporter: Adobe JIRA
>            Assignee: Justin Mclean
>            Priority: Minor
>             Fix For: Apache Flex 4.10.0
>
>
> Steps to reproduce:
> 1. Columns created 
> 2. dataProvider is initializing
> 3. moving to header of the grid then error occured.
>  
>  Actual Results:
>  runtime error occured
> TypeError: Error #1009: Cannot access a property or method of a null object 
> reference.
>       at mx.controls::AdvancedDataGrid/findHeaderRenderer()
>       at mx.controls::AdvancedDataGrid/mouseEventToItemRenderer()
>       at mx.controls.listClasses::AdvancedListBase/mouseMoveHandler()
>  
>  Expected Results:
>  no error should be occur.
>  
>  Workaround (if any):

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to