Howdy Alex (or anyone else)-

SCENARIO:
Flex 4.5.1 mobile application targeting Android and iOS (no pad) only.
Works flawlessly on desktop emulations (all profiles) and on all Android 
devices.

Started testing on iOS 3GS and I get the following error (only top-most 
relevant lines are displayed) after the app hangs at the splash screen:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
        at 
_iForesee_mx_managers_SystemManager/callInContext()[_iForesee_mx_managers_SystemManager.as:38]
        at 
mx.core::EmbeddedFontRegistry/getAssociatedModuleFactory()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\EmbeddedFontRegistry.as:469]
        at 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::getFontContext()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:12682]
        at 
mx.core::UIComponent/createInFontContext()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:12740]
        at 
TitleDisplayComponent/createChildren()[/Users/srd3/Documents/codeline/iForesee-4-5-1/src/assets/skins/FActionBarSkin.as:573]
        at 
mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7624]
        at 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]
        at 
mx.core::UIComponent/addChild()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7166]
        at 
assets.skins::FActionBarSkin/createChildren()[/Users/srd3/Documents/codeline/iForesee-4-5-1/src/assets/skins/FActionBarSkin.as:272]

COMMENT ON DEBUG OUTPUT.
I have made custom skins based on Adobe mobile skins.  The custom skins have 
"F" prepended to the Adobe mobile skin name.  They are clones of the mobile 
theme skins with my custom art etc as hard-coded ActinScript and FXG skins.

I have four very narrow range nonCFF embedded fonts declared appropriately at 
the top.  My data renderers use _sans.

When I mentally step through the code starting at UIComponent line 12739 I 
don't see the problem(!?!).  There are no NULLS.

I understand that the relevant lines of code causing the problem are mostly for 
debug purposes, but I just can't see what the problem is.  All the way up to 
the call to SystemManager.callInContext() there are no NULLS that I can find 
checking the variables -- save for the `this` argument which is NULL as it 
should be.

The fonts are in the registry as:
embed_font_cine_bold_normal_899163827;
embed_font_cine_medium_normal_597874558;
embed_font_serpe_bold_normal_1790603002;
embed_font_serpe_medium_normal_1688454721;

 >:-/

Alex, should I just write an uncaught error handler for this?

Regards,
Naga


Reply via email to