Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
FB4.7, AIR3.6, Windows 64, iOS
Description
Hi,
1. Build an application using Flex for mobile targetted at iOS
2. Use ResourceBundle to provide all strings
3. Add a metadata tag to the main application .mxml as per the below:
<fx:Metadata>
[ResourceBundle("Messages")]
</fx:Metadata>
4. Compile in the different modes:
- For ad hoc release; compiles and runs
- For fast mode debug; compiles and runs
- For STANDARD mode debug; CRASHES HORRIBLY before executing user code
NB: I have tried using a test project where I comment out ALL code and display classes and use an empty view. It is DEFINITELY the metadata declaration that causes the bug.
NB2: I have just attempted moving the metadata declaration elsewhere in my code (to the first view) and the same results are found.
[SWF] gustavo_mobile_as_app.swf - 35,408,264 bytes after decompression
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at en_US$Messages_properties/getContent()
at mx.resources::ResourceBundle()[C:\svn\4.y\frameworks\projects\framewo rk\src\mx\resources\ResourceBundle.as:121]
at mx.resources::ResourceBundle()
at en_US$Messages_properties()
at en_US$Messages_properties()
at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()[E:\ dev\4.y\frameworks\projects\framework\src\mx\resources\ResourceManager Impl.as:396]
at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E: \dev\4.y\frameworks\projects\framework\src\mx\resources\ResourceManage rImpl.as:306]
at mx.resources::ResourceManagerImpl/processInfo()[E:\dev\4.y\frameworks \projects\framework\src\mx\resources\ResourceManagerImpl.as:450]
at mx.resources::ResourceManagerImpl()[E:\dev\4.y\frameworks\projects\fr amework\src\mx\resources\ResourceManagerImpl.as:133]
at mx.resources::ResourceManager$/getInstance()[E:\dev\4.y\frameworks\pr ojects\framework\src\mx\resources\ResourceManager.as:117]
at mx.styles::StyleManagerImpl()[E:\dev\4.y\frameworks\projects\framewor k\src\mx\styles\StyleManagerImpl.as:380]
at _gustavo_mobile_as_app_FlexInit$/init()
at _gustavo_mobile_as_app_FlexInit$/init()
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\SystemMana ger.as:2815]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\SystemMana ger.as:2723]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/timerHandler()[E:\dev\4.y\frameworks\project s\framework\src\mx\preloaders\Preloader.as:542]
at mx.preloaders::Preloader/timerHandler()
at flash.utils::Timer/tick()
at flash.utils::Timer/tick()