Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Apache Flex 4.11.0
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]