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

DropDownController - Null Object Reference

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 4.6 (Release)
    • Adobe Flex SDK Next
    • Spark: DropDownList
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Internet Explorer 8.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Apply a skin to DropDownListBase-based components (ComboBox, DropDownList, etc).
      2. Invoke the detachSkin() somehow (i.e. change the skin at runtime).

      Actual Results:

      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at spark.components.supportClasses::DropDownController/set openButton()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\DropDownController.as:100]
      at spark.components.supportClasses::DropDownListBase/partRemoved()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\DropDownListBase.as:543]
      at spark.components.supportClasses::SkinnableComponent/clearSkinParts()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:764]
      at spark.components.supportClasses::SkinnableComponent/detachSkin()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:798]
      at spark.components.supportClasses::SkinnableComponent/validateSkinChange()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:442]
      at spark.components.supportClasses::SkinnableComponent/commitProperties()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:457]
      at spark.components.supportClasses::ListBase/commitProperties()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\ListBase.as:892]
      at spark.components::List/commitProperties()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\List.as:1139]
      at spark.components.supportClasses::DropDownListBase/commitProperties()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\DropDownListBase.as:508]
      at spark.components::DropDownList/commitProperties()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\DropDownList.as:287]
      at sungard.ebs.base.components::DropDownMenu/commitProperties()[C:\EBS3\Flexspace46\AmbitBaseSpark\src\sungard\ebs\base\components\DropDownMenu.as:188]
      at mx.core::UIComponent/validateProperties()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8219]
      at mx.managers::LayoutManager/validateProperties()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:597]
      at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:813]
      at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]
      at flash.utils::Timer/_timerDispatch()
      at flash.utils::Timer/tick()

      Expected Results:

      No runtime error.

      Workaround (if any):

      None. Monkey-patch...

      Attachments

        1. testMXML.mxml
          1 kB
          Carol Frampton
        2. ComboBoxSkin.mxml
          9 kB
          Carol Frampton

        Activity

          People

            cframpton Carol Frampton
            adobejira Adobe JIRA
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: