Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows XP
Language Found: English
Description
Steps to reproduce:
1. Compile and run below sample piece of code
<?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">
<mx:ModuleLoader url="mod1.swf"/>
</s:Application>
mod1.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" layout="absolute">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
protected function bt_click():void
]]
>
</fx:Script>
<s:Button label="Click" click="bt_click()"/>
</mx:Module>
2. Click on the button 'Click'
3. Run time exception is thrown
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.managers::PopUpManagerImpl/http://www.adobe.com/2006/flex/mx/internal::createModalWindow()
at mx.managers::PopUpManagerImpl/addPopUp()
at mx.managers::PopUpManager$/addPopUp()
at mx.controls::Alert$/show()
at mod1/bt_click()
at mod1/___mod1_Button1_click()
Actual Results:Popping an alert in a module throws Runtime exception
Expected Results: No RTE
Workaround (if any): none