Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Flex SDK 4.0.0.13875
Steps to reproduce:
1. Create a skin for a spark title bar which has no 'titleText' skin part.
2. Use the skin.
Actual Results:
Crashes in TitleBar.commitProperties because it expects 'titleText' to be set.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at spark.components.windowClasses::TitleBar/commitProperties()[E:\dev\4.0.0\frameworks\projects\airspark\src\spark\components\windowClasses\TitleBar.as:424]
at mx.core::UIComponent/validateProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7772]
at mx.managers::LayoutManager/validateProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:572]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:700]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]
Expected Results:
'titleText' is optional
Workaround (if any):
Add a hidden 'titleText' skin part.