Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@96229 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-05-28 17:57:26 +00:00
parent 08a5e58b45
commit f9a0cf6659
1 changed files with 12 additions and 0 deletions

View File

@ -7140,6 +7140,18 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw new TDGWTServiceException(
"Error in extract codelist, TabResource is null");
}
TRId trId = SessionUtil.getTRId(session);
if (trId == null) {
throw new TDGWTServiceException(
"Error no tabular resource in session");
}
if (trId.getTableId() == null) {
throw new TDGWTServiceException("Error no table present in session");
}
extractCodelistSession.setTrId(trId);
OperationExecution invocation = retrieveOperationExecution(service,
extractCodelistSession);