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

Throwing a SpinnerList with no dataProvider causes an RTE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • Mobile: SpinnerList
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a flex mobile project with this 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">

      <s:SpinnerListContainer>
      <s:SpinnerList
      id="peopleList"
      width="300"
      height="150"
      wrapElements="false">
      </s:SpinnerList>
      </s:SpinnerListContainer>

      </s:Application>

      2. Throw the empty SpinnerList
      3.

      Actual Results:

      RTE after a short time:

      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at spark.layouts::VerticalSpinnerLayout/http://www.adobe.com/2006/flex/mx/internal::getElementNearestScrollPosition()[E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\layouts\VerticalSpinnerLayout.as:386]
      at spark.layouts::VerticalSpinnerLayout/getIndexAtVerticalCenter()[E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\layouts\VerticalSpinnerLayout.as:432]
      at spark.components::SpinnerList/touchInteractionEnd()[E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\SpinnerList.as:436]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:13151]
      at spark.components.supportClasses::TouchScrollHelper/dispatchBubblingEventOnMouseDownedDisplayObject()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\TouchScrollHelper.as:870]
      at spark.components.supportClasses::TouchScrollHelper/http://www.adobe.com/2006/flex/mx/internal::endTouchScroll()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\TouchScrollHelper.as:898]
      at spark.components::Scroller/throwEffect_effectEndHandler()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Scroller.as:3404]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.effects::Effect/effectEndHandler()[E:\dev\4.y\frameworks\projects\framework\src\mx\effects\Effect.as:1856]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.effects::EffectInstance/finishEffect()[E:\dev\4.y\frameworks\projects\framework\src\mx\effects\EffectInstance.as:806]
      at spark.effects.supportClasses::AnimateInstance/finishEffect()[E:\dev\4.y\frameworks\projects\spark\src\spark\effects\supportClasses\AnimateInstance.as:873]
      at spark.effects.supportClasses::AnimateInstance/animationEnd()[E:\dev\4.y\frameworks\projects\spark\src\spark\effects\supportClasses\AnimateInstance.as:812]
      at spark.effects.animation::Animation/sendAnimationEvent()[E:\dev\4.y\frameworks\projects\spark\src\spark\effects\animation\Animation.as:861]
      at spark.effects.animation::Animation/end()[E:\dev\4.y\frameworks\projects\spark\src\spark\effects\animation\Animation.as:980]
      at spark.effects.animation::Animation/doInterval()[E:\dev\4.y\frameworks\projects\spark\src\spark\effects\animation\Animation.as:808]
      at spark.effects.animation::Animation$/timerHandler()[E:\dev\4.y\frameworks\projects\spark\src\spark\effects\animation\Animation.as:702]
      at flash.utils::Timer/_timerDispatch()
      at flash.utils::Timer/tick()

      Expected Results:

      No 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: