EA-54667 - AE: KeyboardComboSwitcher$.focusGained

This commit is contained in:
Anna Kozlova
2014-08-05 11:59:05 +02:00
parent d8781830ea
commit 188175b38c
@@ -28,7 +28,7 @@ public class KeyboardComboSwitcher {
if (toggleStrategy) {
final int size = comboBox.getModel().getSize();
int next = comboBox.getSelectedIndex() + 1;
if (next < 0 || next >= size) {
if (size > 0 && (next < 0 || next >= size)) {
if (!UISettings.getInstance().CYCLE_SCROLLING) {
return;
}