THis issue is very similar to : http://forums.adobe.com/message/3910406
The architecture is a loaded module pops up a new Native Window in AIR. The data grid inside the window fails with this stack trace: TypeError: Error #1009: Cannot access a property or method of a null object reference. at spark.components::Group/addElement()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1342] at spark.components.gridClasses::GridLayout/createTypicalItemRenderer()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:748] at spark.components.gridClasses::GridLayout/updateTypicalCellSizes()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:883] at spark.components.gridClasses::GridLayout/measure()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\gridClasses\GridLayout.as:444] at spark.components.supportClasses::GroupBase/measure()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\GroupBase.as:1148] at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::measureSizes()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8506] at mx.core::UIComponent/validateSize()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8430] at spark.components::Group/validateSize()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1012] at mx.managers::LayoutManager/validateSize()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:665] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:816] at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180] If this problem is because of modules, I'm uncertain how to approach. --- In flexcoders@yahoogroups.com, "Battershall, Jeff" <Jeff.Battershall@...> wrote: > > Hi, > > I'm mid re-factoring a SDK 4.0 AIR app to 4.5 and attempting to take > advantage of the Spark DataGrid. In this app (which is built with modules) > I'm opening a NativeWindow and displaying a datagrid. The first error is > that the DataGrid Skin class cannot be found. I dealt with this by creating > a new Skin from the DataGrid and referencing that. Then when I attempt to > populate the grid with data, I get RTEs pointing to Group.as with error #1009 > null. > > I can get in to more exhaustive detail about the exact error(s) but I think > something more fundamental is happening. Note that the libs are all merged > into code. It seems that some of the underlying libraries aren' being > included. > > Does anyone have any experience or theories on what might be happening? > ____________________________ > > Jeff Battershall > Application Architect > > T 609 520 5637 > F 609 520 5370 > C 732 666-8205 > jeff.battershall@...<mailto:jeff.battershall@...> > > Dow Jones Indexes > 4300 Route 1 North > South Brunswick, NJ 08852 > www.djindexes.com<http://www.cmegroup.com/> >