Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
Apache Flex 4.10.0
-
All OS, all player versions
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;