You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Leif Wells (JIRA)" <ji...@apache.org> on 2012/11/02 02:32:12 UTC

[jira] [Updated] (FLEX-33231) null pointer exception in PopUpManagerImpl

     [ https://issues.apache.org/jira/browse/FLEX-33231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Wells updated FLEX-33231:
------------------------------

    Attachment: FLEX-33231_Fix.patch

Attached is the fix made per the suggestion in the description for this task.

I want someone else to check this out before it is committed. 
                
> null pointer exception in PopUpManagerImpl
> ------------------------------------------
>
>                 Key: FLEX-33231
>                 URL: https://issues.apache.org/jira/browse/FLEX-33231
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: PopUp Manager
>    Affects Versions: Apache Flex 4.8 (parity release)
>            Reporter: droopy
>              Labels: patch
>         Attachments: FLEX-33231_Fix.patch
>
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> take a look on line 780, PopUpManagerImpl.as, the code try to access "visible" property without testing if "popup" if not null. (which is done properly a few lines before to add event listeners)
>        if (visibleFlag)
>             showModalWindow(o, sm, false);
>         else
>             popup.visible = visibleFlag; // BANG, null pointer exception
> I found this bug loading flex 4 SWF inside a AIR app with SWFLoader. 

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