flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Harui (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-33987) FocusManager NPE
Date Wed, 26 Feb 2014 23:53:20 GMT

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

Alex Harui commented on FLEX-33987:
-----------------------------------

Having the method return null causes a downstream RTE in the contrived test case.  This indicates
that the renderer may not be a DisplayObjectContainer (maybe a TextField customized to implement
IGridItemRenderer).

> FocusManager NPE
> ----------------
>
>                 Key: FLEX-33987
>                 URL: https://issues.apache.org/jira/browse/FLEX-33987
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Focus Manager
>    Affects Versions: Adobe Flex SDK 4.5.1 (Release), Apache Flex 4.11.0
>            Reporter: Alexander Mazuruk
>            Assignee: Alex Harui
>            Priority: Critical
>
> FocusManager Null pointer exception occurs.
> This:
>     public function getNextFocusManagerComponent(
>                             backward:Boolean = false):IFocusManagerComponent
> 	{
> 		return getNextFocusManagerComponent2(backward, fauxFocus).displayObject as IFocusManagerComponent;
> 	}
> Must be rewritten as:
> public function getNextFocusManagerComponent(
>                             backward:Boolean = false):IFocusManagerComponent
> 	{
>         const focusInfo:FocusInfo = getNextFocusManagerComponent2(backward, fauxFocus);
>         return focusInfo ? focusInfo.displayObject as IFocusManagerComponent : null;
> 	}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message