mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] fix NPE when copying table information
This commit is contained in:
@@ -338,7 +338,7 @@ public class VcsLogGraphTable extends TableWithProgress implements DataProvider,
|
||||
int[] selectedRows = getSelectedRows();
|
||||
for (int i = 0; i < Math.min(VcsLogUtil.MAX_SELECTED_COMMITS, selectedRows.length); i++) {
|
||||
int row = selectedRows[i];
|
||||
for (int j = GraphTableModel.ROOT_COLUMN + 1; j < getModel().getRowCount(); j++) {
|
||||
for (int j = GraphTableModel.ROOT_COLUMN + 1; j < getModel().getColumnCount(); j++) {
|
||||
sb.append(getModel().getValueAt(row, j).toString());
|
||||
if (j < getModel().getRowCount() - 1) sb.append(" ");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user