[ 
https://issues.apache.org/jira/browse/FLEX-33745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13772895#comment-13772895
 ] 

Vitali Kabak commented on FLEX-33745:
-------------------------------------

<?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"
                           >
        <fx:Script>
                <![CDATA[
                        import mx.controls.Alert;
                ]]>
        </fx:Script>
        
        <s:Button label="Click" 
                          click="Alert.show('Test','PopUp');"
                          />
        <mx:PopUpMenuButton x="100">
                <mx:dataProvider>
                        <fx:String>Test</fx:String>
                </mx:dataProvider>
        </mx:PopUpMenuButton>
</s:Application>
                
> Null error in the PopupManagerImpl if accessibility is deactivated
> ------------------------------------------------------------------
>
>                 Key: FLEX-33745
>                 URL: https://issues.apache.org/jira/browse/FLEX-33745
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: PopUp Manager
>    Affects Versions: Apache Flex 4.10.0
>            Reporter: Benjamin Chalupka
>              Labels: nullpointerexception, popupmanager
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> During the removal of a popup this error appears:
> TypeError: Error #1009: Cannot access a property or method of a null object 
> reference.
>       at 
> mx.managers::PopUpManagerImpl/removeModalPopUpAccessibility()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as:1513]
>       at 
> mx.managers::PopUpManagerImpl/popupRemovedHandler()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as:1251]
>       at flash.display::DisplayObjectContainer/removeChild()
>       at 
> mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::rawChildren_removeChild()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/managers/SystemManager.as:2152]
>       at 
> mx.managers::SystemManager/removeChild()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/managers/SystemManager.as:1795]
>       at 
> mx.managers::PopUpManagerImpl/removePopUp()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as:662]
>       at 
> mx.managers::PopUpManager$/removePopUp()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/managers/PopUpManager.as:238]
> The fix should be to simply add a check if the accessibilityProperties 
> property is null or expand the try catch block around it.

--
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

Reply via email to