In a new Flash CS5 Adobe Air 2 file, I add a DataGrid with the name datagrid and put in this code:
datagrid.columns = ["foo", "bar"]
datagrid.addItem( {foo:"the", bar:"text"} );
datagrid.editable = true;
If I click a cell, open another program such as notepad, then minimize that program so that the Air 2 app has the focus, I get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fl.controls::TextInput/setFocus()
at fl.managers::FocusManager/activateHandler()
Is this a bug in Adobe Air 2, and how can I handle this error?