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

focusInHandler() in spark Scroller doesn't null check focusManager property before using

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 4.6 (Release)
    • Adobe Flex SDK Next
    • Spark: Scroller
    • None

    Description

      the focusHandler() method wrongfully assumes that the focusManager is always a valid instance. When checking the focusManager property in UIComponent it is clear that in certain cases this property can return a null value.

      So in some cases this can lead to an RTE. I have encountered this once in my current project but find it very hard to reproduce. Basically a Scroller instance that was displayed in a popup window gave this RTE after the popup was removed.

      Reproducable or not, I believe the null check should be added seeing the fact that the focusManager property explicitly returns null in some cases.

      I have attached a patch file which adds the null check.

      Attachments

        1. Scroller.as.patch
          1 kB
          Roland Zwaga

        Activity

          People

            cframpton Carol Frampton
            roland.zwaga Roland Zwaga
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: