mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix java.lang.IllegalArgumentException: Row index out of range when history is empty
This commit is contained in:
@@ -410,7 +410,10 @@ public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton {
|
||||
treeView.scrollRectToVisible(treeView.getCellRect(lastRow, 0, true));
|
||||
}
|
||||
}
|
||||
myDualView.getFlatView().addRowSelectionInterval(0, 0);
|
||||
final TableView flatView = myDualView.getFlatView();
|
||||
if (flatView.getRowCount() > 0) {
|
||||
flatView.addRowSelectionInterval(0, 0);
|
||||
}
|
||||
myInRefresh = false;
|
||||
myTargetSelection = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user