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

Alex Harui commented on FLEX-34188:
-----------------------------------

I was surprised to find that UIComponent does not set systemManager to null 
when removed from the display list.  I think that is a bug that should be fixed 
some day although it would be scary because lots of people might be depending 
on that behavior.

IMO, it would be better to have ToolTipManager check for a null systemManager 
and then not create the tooltip.  Did you try that and find it had other side 
effects?

One potential issue of using a "nonNullSystemManager" for tooltips and other UI 
is that, in an AIR app with multiple top-level windows, you might end up 
choosing the wrong systemManager.  Each top-level window has its own 
systemManager.


> RTE in ToolTipManagerImpl after focus set, grid cleared and then removed from 
> stage.
> ------------------------------------------------------------------------------------
>
>                 Key: FLEX-34188
>                 URL: https://issues.apache.org/jira/browse/FLEX-34188
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Focus Manager, Tooltip Manager
>    Affects Versions: Apache Flex 4.11.0
>            Reporter: Mihai Chira
>            Assignee: Alex Harui
>              Labels: easyfix, easytest
>             Fix For: Apache Flex 4.13.0
>
>         Attachments: FLEX-34188.patch, _ToolTipManager1009.fxp
>
>
> Steps to reproduce:
> 1. Run the attached AIR project
> 2. Move your mouse over one of the item renderers in the second row (and 
> don't move it for a bit)
> Current behaviour: the RTE below.
> Expected behaviour: a tooltip should appear next to the renderer.
> NOTES:
> -this is most likely caused by FLEX-34187.
> -just like in FLEX-34187, we can reproduce this no matter to whom we give 
> focus before removing the grid.
> -in our application this is causing many similar runtime errors when 
> transitioning from complex views which contain DataGrids.
> -UIFTETextField (the default renderer) seems to be the only component left 
> whose systemManager value depends on whether it's on stage or not. If the 
> effects range beyond interfering with ToolTipManager, maybe we can make it 
> implement a caching method similar to UIComponent?
> RTE:
> TypeError: Error #1009: Cannot access a property or method of a null object 
> reference.
>       at 
> mx.managers::ToolTipManagerImpl/http://www.adobe.com/2006/flex/mx/internal::createTip()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as:947]
>       at 
> mx.managers::ToolTipManagerImpl/http://www.adobe.com/2006/flex/mx/internal::showTimer_timerHandler()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as:1634]
>       at flash.utils::Timer/_timerDispatch()
>       at flash.utils::Timer/tick()



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to