minor fix on get user fullname

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/vo-management/usermanagement-core@142697 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2017-02-17 14:31:55 +00:00
parent 3d9b3a42a9
commit d9346be43e
1 changed files with 2 additions and 1 deletions

View File

@ -253,7 +253,8 @@ public class LiferayWSUserManager implements UserManager{
String fullname =
(first == null | first.isEmpty() ? "" : first + " ") +
(middle == null | middle.isEmpty() ? "" : middle + " ") +
(last == null | last.isEmpty() ? "" : last + " ");
(last == null | last.isEmpty() ? "" : last);
fullname = fullname.endsWith(" ") ? fullname.substring(0, fullname.length() - 1) : fullname;
logger.info("Built fullname is " + fullname);
return fullname;
}