diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/votable/controller/VOTableController.java b/src/main/java/eu/omp/irap/vespa/epntapclient/votable/controller/VOTableController.java index 070869f..fdd6f7d 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/votable/controller/VOTableController.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/votable/controller/VOTableController.java @@ -24,11 +24,11 @@ import java.util.logging.Logger; import eu.omp.irap.vespa.epntapclient.votable.Consts; import eu.omp.irap.vespa.epntapclient.votable.VOTableException.CantDisplayVOTableException; -import eu.omp.irap.vespa.epntapclient.votable.VOTableException.CantSendQueryException; import eu.omp.irap.vespa.epntapclient.votable.VOTableException.CantDisplayVOTableException.CantModifyVOTableException; import eu.omp.irap.vespa.epntapclient.votable.VOTableException.CantDisplayVOTableException.ErrorMessageInVOTableException; import eu.omp.irap.vespa.epntapclient.votable.VOTableException.CantDisplayVOTableException.SeveralResourcesException; import eu.omp.irap.vespa.epntapclient.votable.VOTableException.CantDisplayVOTableException.SeveralTablesException; +import eu.omp.irap.vespa.epntapclient.votable.VOTableException.CantSendQueryException; import eu.omp.irap.vespa.epntapclient.votable.data.VOTableDataCtrl; import eu.omp.irap.vespa.epntapclient.votable.model.Table; import eu.omp.irap.vespa.epntapclient.votable.model.VOTABLE; @@ -114,11 +114,12 @@ public class VOTableController implements VOTableViewListener { Table table = (Table) voTable.getRESOURCE().get(0).getLINKAndTABLEOrRESOURCE().get(0); - VOTableDataCtrl dataParser; + VOTableDataCtrl dataCtrl; try { - dataParser = new VOTableDataCtrl(table); - voTableColumns = dataParser.getData().getColumnsName(); - voTableData = dataParser.getData().getData(); + dataCtrl = new VOTableDataCtrl(table); + dataCtrl.parseData(); + voTableColumns = dataCtrl.getData().getColumnsName(); + voTableData = dataCtrl.getData().getData(); } catch (IOException e) { throw new CantModifyVOTableException(voTablePath, e); } -- libgit2 0.21.2