added try catch to getDisplayName for GcubeGroup

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@96218 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2014-05-28 16:04:31 +00:00
parent 024cdb65e2
commit a5a26c9ba0
1 changed files with 10 additions and 2 deletions

View File

@ -1709,9 +1709,17 @@ public class GWTWorkspaceBuilder {
logger.trace("List<GCubeGroup> size returned from GcubeGroup is: "+ list.size());
logger.trace("Building list contact model...");
for (GCubeGroup group : list) {
for (GCubeGroup group : list){
try{
listContactsModel.add(new InfoContactModel(group.getName(), group.getName(), group.getDisplayName(), true));
}catch (InternalErrorException e) {
logger.warn("Dispaly name is not available to group "+group);
logger.warn("Adding get name property "+group.getName());
listContactsModel.add(new InfoContactModel(group.getName(), group.getName(), group.getName(), true));
}
}
logger.trace("List GCubeGroup contact model completed, return " +listContactsModel.size()+" contacts");
return listContactsModel;