EA-101297 - IOOBE: ChooseByNameBase.applySelection

This commit is contained in:
peter
2017-05-15 21:25:18 +02:00
parent 2cde0c4c5d
commit 435dcc1a6a
@@ -1116,7 +1116,9 @@ public abstract class ChooseByNameBase {
private void applySelection(SelectionPolicy selection) {
List<Integer> indices = selection.performSelection(this, myListModel);
myList.setSelectedIndices(Ints.toArray(indices));
ScrollingUtil.ensureIndexIsVisible(myList, indices.get(0).intValue(), 0);
if (!indices.isEmpty()) {
ScrollingUtil.ensureIndexIsVisible(myList, indices.get(0).intValue(), 0);
}
}
@Deprecated