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
This commit is contained in:
parent
a5a26c9ba0
commit
d5ccb5d3d7
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue