Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@94885 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-04-16 09:52:07 +00:00
parent fe4880c51b
commit 69cb564bcb
1 changed files with 3 additions and 2 deletions

View File

@ -252,19 +252,20 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
HttpSession session = this.getThreadLocalRequest().getSession();
TabResource currentTR = SessionUtil.getTabResource(session);
logger.debug("getCurrentTRId()");
if (currentTR == null) {
logger.error("CURRENT_TABULAR_RESOURCE is null");
throw new TDGWTServiceException(
"CURRENT_TABULAR_RESOURCE is null");
}
logger.debug("GetTabResourceInformation():" + currentTR.toString());
logger.debug("getCurrentTRId():" + currentTR.toString());
if (currentTR.getTrId() == null) {
logger.error("CURRENT_TABULAR_RESOURCE has TRId null");
throw new TDGWTServiceException(
"CURRENT_TABULAR_RESOURCE has TRId null");
}
logger.debug("getCurrentTRId():"+currentTR.getTrId());
return currentTR.getTrId();
} catch (Throwable e) {
logger.error(