Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows 7
Language Found: English
Description
Steps to reproduce:
1. Define a Spark datagrid in an UI (do not set the dataprovider initially)
2.
3.
Actual Results: The SparkDataGridAutomationImpl will throw a Nullpointer exception when it initializes the datagrid. This prevents using automation.
Expected Results: The SparkDataGridAutomationImpl checks if the dataprovider is already set.
Workaround (if any): Override the SparkDataGridAutomationImpl method getCompleteRenderersArray() and check if the dataprovider is already set before calling the super method.
override public function getCompleteRenderersArray():Array
{
if (grid.dataProvider == null)
return super.getCompleteRenderersArray();
}