[vcs-log] fix NPE when copying table information

This commit is contained in:
Julia Beliaeva
2017-02-08 18:38:59 +03:00
parent 5fa29c5f48
commit 160b2b4d30
@@ -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(" ");
}