mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixing failing testcase SiteServiceTest.testGetMembership().
I don't understand how this test started failing, but I see why it's failing now and there's a clear bug in People.java which I've fixed. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@47787 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -848,8 +848,8 @@ public final class People extends BaseScopableProcessorExtension implements Init
|
||||
public ScriptNode getPerson(final String username)
|
||||
{
|
||||
ParameterCheck.mandatoryString("Username", username);
|
||||
final NodeRef personRef = personService.getPerson(username, false);
|
||||
return new ScriptNode(personRef, services, getScope());
|
||||
final NodeRef personRef = personService.getPersonOrNull(username);
|
||||
return personRef == null ? null : new ScriptNode(personRef, services, getScope());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user