fixed bug on shorting link

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@77444 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2013-07-01 15:58:57 +00:00
parent 2ef13ff2d7
commit 18aeda5198
1 changed files with 1 additions and 2 deletions

View File

@ -283,14 +283,13 @@ public class WsUtil {
if(shortener==null){ if(shortener==null){
shortener = new UrlShortener(); shortener = new UrlShortener();
session.setAttribute(URL_SHORTENER_SERVICE, shortener); session.setAttribute(URL_SHORTENER_SERVICE, shortener);
return shortener;
} }
}catch (Exception e) { }catch (Exception e) {
defaultLogger.error("an error occurred in instancing url shortener ",e); defaultLogger.error("an error occurred in instancing url shortener ",e);
} }
return null; return shortener;
} }
} }