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

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

So, with this monkey-patch in place, does the editor get focus?  I would 
imagine that would be an outcome of only having this patch in place for the 
given scenario.  Or do you have a separate patch for giving the editor focus?

In theory, you can't have a datagrid in a UI and not have focusable objects.  
I'm trying to get enough information to reproduce this stack trace in a small 
test case so we don't just make this patch and leave other problems out there, 
or so we do prevent this problem in the DataGrid editing subsystem because it 
is the "right" fix.



> FocusManager NPE
> ----------------
>
>                 Key: FLEX-33987
>                 URL: https://issues.apache.org/jira/browse/FLEX-33987
>             Project: Apache Flex
>          Issue Type: Bug
>    Affects Versions: Adobe Flex SDK 4.5.1 (Release), Apache Flex 4.11.0
>            Reporter: Alexander Mazuruk
>            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.4#6159)

Reply via email to