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

fauxFocus null, when calling getNextFocusManagerComponent()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK 4.5 (Release)
    • None
    • Focus Manager
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Safari
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a custom component
      2. Have a method call focusManager.setFocus(focusManager.getNextFocusManagerComponent());
      3. RTE when method is run

      Actual Results:
      RTE

      Expected Results:
      getNextFocusManagerComponent() should return next focus component.

      Workaround (if any):
      None found yet
      In Flex 3 focusManager.moveFocus(FocusRequestDirection.FORWARD); was used
      This is no longer present in Flex 4.

      Stack trace:
      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at mx.managers::FocusManager/getNextFocusManagerComponent()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\FocusManager.as:1471]
      at com.ceros.pageEditor.view.components::PageNumberNavigator/onFocusIn()[/Users/robmcm/Documents/Adobe Flash Builder 4/PageEditor/src/com/ceros/pageEditor/view/components/PageNumberNavigator.mxml:58]
      at com.ceros.pageEditor.view.components::PageNumberNavigator/___PageNumberNavigator_TextInput1_focusIn()[/Users/robmcm/Documents/Adobe Flash Builder 4/PageEditor/src/com/ceros/pageEditor/view/components/PageNumberNavigator.mxml:3]

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: