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

RTE when setting the focus on a component on a currentStateChange event and the component is not visible

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK Previous
    • None
    • Focus Manager
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Browser: Firefox 3.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Create the following application :
      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      currentStateChange="textI.setFocus()">
      <s:states>
      <s:State name="state1"/>
      <s:State name="state2"/>
      </s:states>
      <mx:Form visible="false">
      <mx:FormItem label="Text">
      <s:TextInput id="textI"/>
      </mx:FormItem>
      </mx:Form>
      </s:Application>
      2. Run

      Actual Results:
      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at mx.managers::FocusManager/childHideHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\FocusManager.as:1733]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:12153]
      at mx.core::UIComponent/setVisible()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:2973]
      at mx.core::UIComponent/set visible()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:2932]
      at spark.skins.spark::HighlightBitmapCaptureSkin/updateDisplayList()[E:\dev\trunk\frameworks\projects\spark\src\spark\skins\spark\HighlightBitmapCaptureSkin.as:165]
      at spark.skins.spark::FocusSkin/updateDisplayList()[E:\dev\trunk\frameworks\projects\spark\src\spark\skins\spark\FocusSkin.as:115]
      at mx.core::UIComponent/validateDisplayList()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:8447]
      at mx.managers::LayoutManager/validateDisplayList()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:663]
      at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718]
      at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1069]

      Expected Results:
      Should not throw a RTE.

      Workaround (if any):

      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: