Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Compile:
<?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"
creationComplete="loadFontModule()"
width="800" height="600">
<fx:Script>
<![CDATA[
import spark.layouts.*;
import mx.core.UIComponent;
import mx.core.UIFTETextField;
import mx.modules.IModuleInfo;
import mx.modules.ModuleManager;
import mx.events.ModuleEvent;
import flash.events.MouseEvent;
private var dp:Array = [
{ first: 'Main', last: 'App'},
{first: 'Loads', last: 'Modules' }];
private var fontModuleInfo:IModuleInfo;
private function loadFontModule():void
{ fontModuleInfo = ModuleManager.getModule("assets/FontModule.swf"); fontModuleInfo.addEventListener(ModuleEvent.READY, readyHandler); fontModuleInfo.load(); }private function readyHandler(event:Event):void
{ fontModuleInfo.factory.create(); } ]]
>
</fx:Script>
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@font-face
{ src:url("assets/Arial.swf"); fontFamily: Arial; }@font-face
{ src:url("assets/Arialbd.swf"); fontWeight: bold; fontFamily: Arial; }global
{ fontAntiAliasType: "normal"; fontFamily: Arial; }</fx:Style>
<s:layout> <s:VerticalLayout/> </s:layout>
<s:Button id="gumbo_button" label="change font" click="pnl.setStyle('fontFamily', 'myCourier')" />
<s:Panel id="pnl" title="Gumbo Main Panel" height="350">
<s:layout> <s:VerticalLayout/> </s:layout>
<s:TextArea id="gumbo_textArea" height="150"/>
<mx:Button id="halo_button" label="halo button" textFieldClass="mx.core.UIFTETextField" />
<mx:DataGrid id="dg" initialize="dg.dataProvider=dp" textFieldClass="mx.core.UIFTETextField" itemRenderer="mx.controls.dataGridClasses.FTEDataGridItemRenderer"/>
</s:Panel>
</s:Application>
Actual Results:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
atmx.utils::LoaderUtil$/http://www.adobe.com/2006/flex/mx/internal::processRequiredRSLs()[E:\dev\hero_private\frameworks\projects\framework\src\mx\utils\LoaderUtil.as:309]
atmx.core::FlexModuleFactory/getRSLInfo()
atmx.core::FlexModuleFactory/update()
atmx.core::FlexModuleFactory/timerHandler()
atflash.utils::Timer/_timerDispatch()
atflash.utils::Timer/tick()
Expected Results:
No RTE
Workaround (if any):