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

RTE when closing SkinnablePopUpContainer

    XMLWordPrintableJSON

Details

    Description

      RTE occurred when closing SkinnablePopUpContainer, using mx:Application as top level application

      In the below code, topLevelApp becomes null if mx:Application is used as top level application wrapper.
      A NPE will be throw on the next line.

      SkinnablePopUpContainer.as Line 1162

      private function updateSoftKeyboardEffect(snapPosition:Boolean):void
      {
      // Stop the current effect
      if (softKeyboardEffect && softKeyboardEffect.isPlaying)
      softKeyboardEffect.stop();

      // Uninstall resize listeners during the effect. Listeners are
      // installed again after the effect is complete or immediately affter
      // the size and position are snapped.
      uninstallActiveResizeListener();

      var topLevelApp:Application = FlexGlobals.topLevelApplication as Application;
      var softKeyboardRect:Rectangle = topLevelApp.softKeyboardRect;

      Attachments

        Activity

          People

            Unassigned Unassigned
            guardianblue Brian Chiu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified