flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mihai Chira (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FLEX-32533) Error 1009 when AIR application is reduced and an AdvancedDataGrid has at least one column with backgroundColor property set.
Date Thu, 03 Jul 2014 11:41:25 GMT

    [ 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)

Mime
View raw message