Kevincosme / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

Null reference error trying to run TreeGrid sample #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to compile TreeGrid Example
2.
3.

What is the expected output? What do you see instead?
TypeError: Error #1009: Cannot access a property or method of a null 
object reference.
    at flexlib.controls.treeGridClasses::TreeGridItemRenderer/
flexlib.controls.treeGridClasses:TreeGridItemRenderer::updateDisplayList()
    at mx.core::UIComponent/validateDisplayList()
    at mx.managers::LayoutManager/validateClient()
    at mx.core::UIComponent/validateNow()
    at mx.controls.listClasses::ListBase/
mx.controls.listClasses:ListBase::drawItem()
    at mx.controls.dataGridClasses::DataGridBase/
mx.controls.dataGridClasses:DataGridBase::drawItem()
    at mx.controls.dataGridClasses::DataGridBase/
mx.controls.dataGridClasses:DataGridBase::makeRowsAndColumns()
    at mx.controls::DataGrid/mx.controls:DataGrid::makeRowsAndColumns()
    at mx.controls.listClasses::ListBase/
mx.controls.listClasses:ListBase::updateDisplayList()
    at mx.controls::DataGrid/mx.controls:DataGrid::updateDisplayList()

What version of the product are you using? On what operating system?
Flex 2.0.1 on Eclipse, OS Windows XP

Please provide any additional information below.

Original issue reported on code.google.com by vitalikm...@gmail.com on 28 May 2007 at 11:44

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 30 Jun 2007 at 11:11

GoogleCodeExporter commented 8 years ago

Original comment by darron.schall on 21 Sep 2007 at 6:12

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 26 Dec 2007 at 7:28

GoogleCodeExporter commented 8 years ago
Has this issue ever been resolved? I am currently getting it whenever I try and 
run a
project that is made from the TreeGrid_Sample files.

Original comment by clintdoriot@gmail.com on 23 Sep 2008 at 8:19

GoogleCodeExporter commented 8 years ago
I was able to fix my code to some extent. The error was on line 333 of
TreeGridItemRenderer.as, flexlib 2.4. It was due to the fact that I did not 
declare a
disclosureClosedIcon / disclosureOpenIcon in my TreeGrid mxml component. Perhaps
there should be a default?

Original comment by clintdoriot@gmail.com on 23 Sep 2008 at 9:27

GoogleCodeExporter commented 8 years ago
This issue was reported again as issue #124, which contains a bit more detail 
about
the code that causes the problem. A fix will likely include a fix to prevent a 
RTE if
the icons are null, but also will include default icons for the disclosure 
icons if
none are provided by the user.

Original comment by dmcc...@gmail.com on 26 Oct 2009 at 12:32