Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
Adobe Flex SDK 3.5 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Browser: Other (specify version)
Language Found: English
Description
Steps to reproduce:
1. Implement a Datagrid and use set dragEnabled="true"
2. For a column, implement an item renderer
3. Now drag and drop
Actual Results:
Error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.controls::TextInput/set data()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\controls\TextInput.as:632]
at mx.controls.dataGridClasses::DataGridDragProxy/createChildren()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridDragProxy.as:137]
at mx.core::UIComponent/initialize()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5381]
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5278]
at mx.core::UIComponent/addChild()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:4980]
at mx.managers::DragManagerImpl/doDrag()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\managers\DragManagerImpl.as:281]
at mx.managers::DragManager$/doDrag()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\managers\DragManager.as:243]
at mx.controls.listClasses::ListBase/dragStartHandler()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:9190]
at mx.controls::DataGrid/dragStartHandler()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:5027]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9440]
at mx.controls.listClasses::ListBase/mouseMoveHandler()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:8927]
Expected Results:
It shouldn't happen and shouldn't be trying to access this.textField in the setter for data.
Workaround (if any):
Extended TextInput.as, and override the setter and getter for data.
Copied the functionality in the set data(value:Object) function, and removed the line
"textField.setSelection(0, 0);"
Please note, this is introduced in 3.5 and still exists in 4.0