diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/votable/view/VOTableView.java b/src/main/java/eu/omp/irap/vespa/epntapclient/votable/view/VOTableView.java index 38997ce..f015b88 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/votable/view/VOTableView.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/votable/view/VOTableView.java @@ -82,7 +82,8 @@ public class VOTableView extends JPanel implements TableModelListener { Object[][] values = data.toArray(new Object[data.size()][]); Utils.printObject("tableData", values); tableData.setDataVector(values, columns); - table.setRowSelectionInterval(0, 0); + if (values.length != 0) + table.setRowSelectionInterval(0, 0); } /** -- libgit2 0.21.2