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

Mihai Chira commented on FLEX-34188:
------------------------------------

I don't know about the other managers, but the ToolTipManager uses the targets' 
systemManager in scores of places and assumes it won't be null. If that were to 
change, we'd have to litter ToolTipManagerImpl with null checks, which doesn't 
feel ideal either.
As for choosing the wrong systemManager, are there any bugs open about this 
problem? Because from the github history, UIComponent has been returning a 
non-null systemManager at least since Jan 2012.

> 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