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

RTE null object reference in ViewTransitionBase.captureEndValues() when Skin does not provide an ActionBar

    XMLWordPrintableJSON

Details

    Description

      Steps to reproduce:

      • Create a Skin for ViewNavigator that does not provide an actionBar which is not a required SkinPart, see ViewNavigator
      • Apply that Skin to a ViewNavigator
      • Add a View that navigates to another View via navigator.pushView()
      • In that second View, call navigator.popView()

      Expected result:
      The default backward transition is played, and the first view ist diplayed again.

      Actual result:
      this.actionBar is accessed, but it is null:
      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at spark.transitions::ViewTransitionBase/captureEndValues()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/mobilecomponents/src/spark/transitions/ViewTransitionBase.as:755]
      at spark.components::ViewNavigator/completeTransitionPreparations()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as:2251]
      at spark.components::ViewNavigator/prepareViewTransition()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as:2180]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/core/UIComponent.as:13413]
      at mx.managers::LayoutManager/doPhasedInstantiation()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/LayoutManager.as:852]
      at mx.managers::LayoutManager/doPhasedInstantiationCallback()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/LayoutManager.as:1188]

      Attachments

        Activity

          People

            jmclean Justin Mclean
            vincent.spallek@gmail.com Vincent Spallek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: