[
https://issues.apache.org/jira/browse/FLEX-33655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13734372#comment-13734372
]
Justin Mclean commented on FLEX-33655:
--------------------------------------
Tried the following on 10.3 and no RTE - any chance you could provide some
sample 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"
initialize="init(event)">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
import mx.managers.PopUpManager;
protected function init(event:FlexEvent):void
{
new Popup().open(this);
}
]]>
</fx:Script>
</s:Application>
Popup.mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:SkinnablePopUpContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300">
<s:layout>
<s:VerticalLayout />
</s:layout>
<s:Label text="Popup" />
<s:Button label="close" click="close()" />
</s:SkinnablePopUpContainer>
> RTE when closing SkinnablePopUpContainer
> ----------------------------------------
>
> Key: FLEX-33655
> URL: https://issues.apache.org/jira/browse/FLEX-33655
> Project: Apache Flex
> Issue Type: Bug
> Components: Mobile: SkinnablePopUpContainer
> Affects Versions: Apache Flex 4.10.0
> Environment: All OS, all player versions
> Reporter: Brian Chiu
> Priority: Minor
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> 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;
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira