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

AIR mobile + flex sdk 4.10 + text field setFocus runtime error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Apache Flex 4.10.0
    • Apache Flex 4.12.0
    • None

    Description

      Inside setFocus method, this check throws Null pointer exception:
      if (stage.focus != this)
      because stage is null.

      Here is the full stack trace:

      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at spark.components.supportClasses::StyleableTextField/setFocus()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as:1016]
      at Function/http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/callLaterDispatcher2()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/core/UIComponent.as:12494]
      at mx.core::UIComponent/callLaterDispatcher()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/core/UIComponent.as:12432]

      Attachments

        Activity

          People

            jmclean Justin Mclean
            flashman Deyan Vitanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: