Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@113471 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-03-05 17:30:59 +00:00
parent 9f88bd365f
commit 650de57de0
1 changed files with 6 additions and 0 deletions

View File

@ -69,7 +69,13 @@ public class OpExecution4ChangeColumnsPosition extends OpExecutionBuilder {
logger.error("Error in change position: no column set");
throw new TDGWTServiceException("No column set");
}
if (changeColumnsPositionSession.getColumns().size() <=1) {
logger.error("Error in change position: Columns <= 1");
throw new TDGWTServiceException("There are not enough columns");
}
ArrayList<ColumnReference> columns = new ArrayList<ColumnReference>();
for (ColumnData col : changeColumnsPositionSession.getColumns()) {
ColumnLocalId columnId = new ColumnLocalId(col.getColumnId());