Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-16853

Calling Alert.Show from titleWindow throws a RTE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 3.2 (Release)
    • mx: Alert
    • None
    • Affected OS(s): All OS Platforms
      Browser: Internet Explorer 7.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile and run attached MXML file (or run SWF file).
      2. Click the "Click to open the TitleWindow container" button to launch the popup.
      3. Click the "OK" button without typing anything into the text input field.

      Actual Results:
      RTE:
      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at mx.core::UIComponent/getVisibleRect()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9237]
      at mx.managers::PopUpManagerImpl/centerPopUp()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:499]
      at mx.managers::PopUpManager$/centerPopUp()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\PopUpManager.as:184]
      at mx.controls::Alert$/static_creationCompleteHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\Alert.as:582]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298]
      at mx.core::UIComponent/set initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1169]
      at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718]
      at Function/http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
      at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]

      Expected Results:
      No RTE.

      Workaround (if any):
      (a) Alert.show("Testing Bug", "Testing Bug", 4, null, AlertHandler); // specify "null" instead of "this".
      (b) Remove the popup window after the Alert has been displayed by using callLater():

      private function returnName():void {
      Alert.show("Testing Bug", "Testing Bug", 4, this, AlertHandler);
      callLater(delayedRemovePopup);
      }

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: