From d5ccb5d3d7a8c82abde7e37af87d4eedc4e25b5b Mon Sep 17 00:00:00 2001 From: Francesco Mangiacrapa Date: Thu, 29 May 2014 10:19:36 +0000 Subject: [PATCH] added check on group display name git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@96240 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../user/workspace/server/GWTWorkspaceBuilder.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/portlets/user/workspace/server/GWTWorkspaceBuilder.java b/src/main/java/org/gcube/portlets/user/workspace/server/GWTWorkspaceBuilder.java index 9c726b8..90c53e6 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/server/GWTWorkspaceBuilder.java +++ b/src/main/java/org/gcube/portlets/user/workspace/server/GWTWorkspaceBuilder.java @@ -1712,7 +1712,12 @@ public class GWTWorkspaceBuilder { for (GCubeGroup group : list){ try{ - listContactsModel.add(new InfoContactModel(group.getName(), group.getName(), group.getDisplayName(), true)); + String groupDN = group.getDisplayName(); + + if(groupDN==null || groupDN.isEmpty()) + groupDN = group.getName(); + + listContactsModel.add(new InfoContactModel(group.getName(), group.getName(), groupDN, true)); }catch (InternalErrorException e) { logger.warn("Dispaly name is not available to group "+group); logger.warn("Adding get name property "+group.getName());