From 2c72ba1fc8b914ccb5268214fa4034cac0183c24 Mon Sep 17 00:00:00 2001 From: Nathanael Jourdane Date: Mon, 14 Mar 2016 13:11:20 +0100 Subject: [PATCH] bugFix: Requests with empty result are allowed. --- src/main/java/eu/omp/irap/vespa/epntapclient/votable/view/VOTableView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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