flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cyrill Zadra (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-32599) TypeError: Error #1009: Cannot access a property or method of a null object reference.at mx.controls::AdvancedDataGrid/findHeaderRenderer()mx.controls::AdvancedDataGrid/mouseEventToItemRenderer()
Date Sat, 27 Jul 2013 08:01:53 GMT

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

Cyrill Zadra commented on FLEX-32599:
-------------------------------------

Just run into this error with Apache Flex 4.10.0

1) Compile example and run.
2) Click on VerticalScrollbar
3) mouseOver on dataGrid and following error occurs.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at mx.controls::AdvancedDataGrid/findHeaderRenderer()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as:5876]
	at mx.controls::AdvancedDataGridBaseEx/mouseEventToItemRenderer()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as:2690]
	at mx.controls::AdvancedDataGrid/mouseEventToItemRenderer()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as:2148]
	at mx.controls::AdvancedDataGrid/mouseOverHandler()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as:8426]

Can anyone else reproduce this error? With apache flex 4.9.1 it works.


Example Code

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
			   xmlns:s="library://ns.adobe.com/flex/spark" 
			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
	
	<mx:AdvancedDataGrid width="40%" height="50%" horizontalScrollPolicy="on">
		<mx:columns>
			<mx:AdvancedDataGridColumn width="100" dataField="field1" headerText="Field 1"  />
			<mx:AdvancedDataGridColumn width="100" dataField="field2" headerText="Field 2" />
			<mx:AdvancedDataGridColumn width="100" dataField="field3" headerText="Field 3" />
			<mx:AdvancedDataGridColumn width="100" dataField="field4" headerText="Field 4" />
			<mx:AdvancedDataGridColumn width="100" dataField="field5" headerText="Field 5" />
			<mx:AdvancedDataGridColumn width="100" dataField="field6" headerText="Field 6" />
			<mx:AdvancedDataGridColumn width="100" dataField="field7" headerText="Field 7" />
			<mx:AdvancedDataGridColumn width="100" dataField="field8" headerText="Field 8" />
			<mx:AdvancedDataGridColumn width="100" dataField="field9" headerText="Field 9" />
			<mx:AdvancedDataGridColumn width="100" dataField="field10" headerText="Field 10" />
			<mx:AdvancedDataGridColumn width="100" dataField="field11" headerText="Field 11" />
		</mx:columns>
	</mx:AdvancedDataGrid>
	
</s:Application>


                
> 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

Mime
View raw message