History | Log In     View a printable version of the current page.  
Issue Details (XML)

Key: SDK-15521
Type: Bug Bug
Status: Open Open
Priority: B B
Assignee: Ryan Frishberg
Reporter: Peter deHaan (Adobe)
Votes: 2
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Flex SDK

RTE when using keyboard navigation on Flex DataGrid with empty dataprovider

Created: 05/09/08 03:13 PM   Updated: 05/13/09 04:42 PM
Component/s: mx: DataGrid
Security Level: Public (All JIRA Users )

File Attachments: 1. Text File main.mxml (0.3 kb)
2. File main.swf (399 kb)


Severity: Runtime Error
Reproducibility: Every Time
Discoverability: Low
Found in Version: SDK Flex 3 (Released)
Milestone: SDK Gumbo - Release
Affected OS(s): All OS Platforms - All
Steps to Reproduce:
Steps to reproduce:
1. Compile and run attached bug file.
2. Click the DataGrid to give Flex/DataGrid focus.
3. Press the up/down arrow or pageup/pagedown button on thy keyboard (others may work too, i only tried the core-four)


Actual Results:
[RTE]
TypeError: Error #1010: A term is undefined and has no properties.
at mx.controls.dataGridClasses::DataGridBase/moveSelectionVertically()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:2311]
at mx.controls.listClasses::ListBase/keyDownHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:7891]
at mx.controls::DataGrid/keyDownHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.as:4561]
[/RTE]
 
 
Expected Results:
No RTE


Workaround (if any):
Not really a "workaround" but the issue doesnt seem to appear if dataProvider was not provided (or has 1 or more items)
 
 
Language Found: English
Bugbase Id: none
Triaged: Yes
Regression: No
QA Owner: Robert Vollmar (Adobe)
Participants: Deepa Subramaniam, Makoto Ichihara, Peter deHaan (Adobe), Robert Vollmar (Adobe) and Ryan Frishberg

Sub-Tasks  All   Open   
 Sub-Task Progress: 

 All   Comments      Sort Order:
Peter deHaan (Adobe) - [05/09/08 03:15 PM ]
Not a regression. Happens in 201.3 also:
[RTE]
TypeError: Error #1010: A term is undefined and has no properties.
at mx.controls.dataGridClasses::DataGridBase/moveSelectionVertically()[E:\dev\flex_201_borneo\sdk\frameworks\mx\controls\dataGridClasses\DataGridBase.as:794]
at mx.controls.listClasses::ListBase/keyDownHandler()[E:\dev\flex_201_borneo\sdk\frameworks\mx\controls\listClasses\ListBase.as:6315]
at mx.controls::DataGrid/keyDownHandler()[E:\dev\flex_201_borneo\sdk\frameworks\mx\controls\DataGrid.as:4451]
[/RTE]

Robert Vollmar (Adobe) - [05/13/08 12:35 PM ]
Sending to IRB.

Robert Vollmar (Adobe) - [06/24/08 07:33 PM - edited ]
Fix in Flex 4

Deepa Subramaniam - [08/25/08 05:12 PM ]
To Ryan for Gumbo release - hopefully as straightforward as adding a null check.

Makoto Ichihara - [02/26/09 04:24 AM ]
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:ArrayCollection id="emptyAc" />
<mx:DataGrid id="dataGrid" dataProvider="{emptyAc}">

<mx:columns>
<mx:DataGridColumn dataField="a"/>
<mx:DataGridColumn dataField="b" />
<mx:DataGridColumn dataField="c" />
</mx:columns>

</mx:DataGrid>
</mx:Application>

The code above can cause the same kind of error. This time it is #1009. The root cause must be the same.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.controls.dataGridClasses::DataGridBase/finishKeySelection()[C:\autobuild\3.2.\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:2565]
at mx.controls.dataGridClasses::DataGridBase/moveSelectionVertically()[C:\autobuild\3.2.\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:2511]
at mx.controls.listClasses::ListBase/keyDownHandler()[C:\autobuild\3.2.\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:7925]
at mx.controls::DataGrid/keyDownHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:4580]