Commit 2c72ba1fc8b914ccb5268214fa4034cac0183c24
1 parent
1d3888a3
Exists in
master
bugFix: Requests with empty result are allowed.
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/main/java/eu/omp/irap/vespa/epntapclient/votable/view/VOTableView.java
@@ -82,7 +82,8 @@ public class VOTableView extends JPanel implements TableModelListener { | @@ -82,7 +82,8 @@ public class VOTableView extends JPanel implements TableModelListener { | ||
82 | Object[][] values = data.toArray(new Object[data.size()][]); | 82 | Object[][] values = data.toArray(new Object[data.size()][]); |
83 | Utils.printObject("tableData", values); | 83 | Utils.printObject("tableData", values); |
84 | tableData.setDataVector(values, columns); | 84 | tableData.setDataVector(values, columns); |
85 | - table.setRowSelectionInterval(0, 0); | 85 | + if (values.length != 0) |
86 | + table.setRowSelectionInterval(0, 0); | ||
86 | } | 87 | } |
87 | 88 | ||
88 | /** | 89 | /** |