Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33987

FocusManager NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Adobe Flex SDK 4.5.1 (Release), Apache Flex 4.11.0
    • None
    • Focus Manager
    • None

    Description

      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; }

      Attachments

        Activity

          People

            aharui Alex Harui
            leybniz Alexander Mazuruk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: