You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2014/03/07 02:05:37 UTC
[27/50] git commit: [flex-sdk] [refs/heads/master] - FLEX-33987 Add
fault tolerance to FocusManager. Getting null here probably means that
something is mis-configured. See bug notes for more info.
FLEX-33987 Add fault tolerance to FocusManager. Getting null here probably means that something is mis-configured. See bug notes for more info.
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/2a9073e0
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/2a9073e0
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/2a9073e0
Branch: refs/heads/master
Commit: 2a9073e052d2aa59466f27ada96657cc8b733471
Parents: 60a53fe
Author: Alex Harui <ah...@apache.org>
Authored: Wed Feb 26 16:48:49 2014 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Feb 26 16:49:20 2014 -0800
----------------------------------------------------------------------
frameworks/projects/framework/src/mx/managers/FocusManager.as | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2a9073e0/frameworks/projects/framework/src/mx/managers/FocusManager.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/framework/src/mx/managers/FocusManager.as b/frameworks/projects/framework/src/mx/managers/FocusManager.as
index b815c38..27da1eb 100644
--- a/frameworks/projects/framework/src/mx/managers/FocusManager.as
+++ b/frameworks/projects/framework/src/mx/managers/FocusManager.as
@@ -1590,7 +1590,8 @@ public class FocusManager extends EventDispatcher implements IFocusManager
public function getNextFocusManagerComponent(
backward:Boolean = false):IFocusManagerComponent
{
- return getNextFocusManagerComponent2(backward, fauxFocus).displayObject as IFocusManagerComponent;
+ const focusInfo:FocusInfo = getNextFocusManagerComponent2(backward, fauxFocus);
+ return focusInfo ? focusInfo.displayObject as IFocusManagerComponent : null;
}
/**