EA-26476 fix ClassCastException

This commit is contained in:
Eugene Kudelevsky
2011-04-08 23:21:18 +04:00
parent de98984fa9
commit e63998818a
@@ -129,9 +129,7 @@ public class DeviceChooser extends DialogWrapper implements AndroidDebugBridge.I
private void updateTable() {
final AndroidDebugBridge bridge = myFacet.getDebugBridge();
if (bridge == null) return;
IDevice[] devices = bridge.getDevices();
IDevice[] devices = bridge != null ? bridge.getDevices() : EMPTY_DEVICE_ARRAY;
int[] selectedRows = myDeviceTable.getSelectedRows();
myDeviceTable.setModel(new MyDeviceTableModel(devices));
if (selectedRows.length == 0 && devices.length > 0) {