You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Mihai Chira (JIRA)" <ji...@apache.org> on 2014/07/03 13:41:25 UTC

[jira] [Comment Edited] (FLEX-32533) Error 1009 when AIR application is reduced and an AdvancedDataGrid has at least one column with backgroundColor property set.

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

Mihai Chira edited comment on FLEX-32533 at 7/3/14 11:41 AM:
-------------------------------------------------------------

The error in the attached project is in the same function, though not on the same line:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at mx.controls::AdvancedDataGridBaseEx/drawColumnBackground()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as:4067]
	at mx.controls::AdvancedDataGridBaseEx/drawLinesAndColumnBackgrounds()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as:4351]
	at mx.controls::AdvancedDataGridBaseEx/updateDisplayList()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as:2167]
	at mx.controls::AdvancedDataGrid/updateDisplayList()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as:2916]
	at mx.controls.listClasses::AdvancedListBase/validateDisplayList()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/advancedgrids/src/mx/controls/listClasses/AdvancedListBase.as:3481]
	at mx.managers::LayoutManager/validateDisplayList()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/framework/src/mx/managers/LayoutManager.as:744]
	at mx.managers::LayoutManager/doPhasedInstantiation()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/framework/src/mx/managers/LayoutManager.as:809]
	at mx.managers::LayoutManager/doPhasedInstantiationCallback()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/framework/src/mx/managers/LayoutManager.as:1188]


was (Author: evolverine):
The error in the attached project is in the same function, though not on the same line.

> Error 1009 when AIR application is reduced and an AdvancedDataGrid has at least one column with backgroundColor property set.
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-32533
>                 URL: https://issues.apache.org/jira/browse/FLEX-32533
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Advanced Data Grid
>    Affects Versions: Adobe Flex SDK Previous, Apache Flex 4.12.1
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Language Found: English
>            Reporter: Adobe JIRA
>            Priority: Minor
>         Attachments: _ShortADGWithColor.fxp
>
>
> Steps to reproduce:
> 1. Add an AdvancedDataGrid
> 2. Add a column and set backgroundColor
> 3. Execute application and reduce
>  
>  Actual Results:
>  Error 1009 in drawColumnBackground method of AdvancedDataGridBaseEx class. rowInfo[listItems.length - 1]; return null value ! because listItems.length = 0
>  
>  Expected Results:
>  No error
>  
>  Workaround (if any):
>  Define a new class from AdvancedDataGrid and override this method to test listItems.length or return value of rowInfo[listItems.length - 1]



--
This message was sent by Atlassian JIRA
(v6.2#6252)