From fee50fdb9f92196a14b6f01c3ba35c2c1d4b0da5 Mon Sep 17 00:00:00 2001 From: Andrew Hind Date: Tue, 1 Sep 2009 14:09:57 +0000 Subject: [PATCH] RM Capabilities - more tests and fixes - person service impl handles emtpy and null uids git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16011 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../alfresco/repo/security/person/PersonServiceImpl.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/java/org/alfresco/repo/security/person/PersonServiceImpl.java b/source/java/org/alfresco/repo/security/person/PersonServiceImpl.java index e378a2dd4d..af6e8d8d38 100644 --- a/source/java/org/alfresco/repo/security/person/PersonServiceImpl.java +++ b/source/java/org/alfresco/repo/security/person/PersonServiceImpl.java @@ -278,6 +278,14 @@ public class PersonServiceImpl extends TransactionListenerAdapter implements Per private NodeRef getPersonImpl(String userName) { + if(userName == null) + { + return null; + } + if(userName.length() == 0) + { + return null; + } NodeRef personNode = getPersonOrNull(userName); if (personNode == null) {