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:
Neil McErlean
2013-03-08 09:55:12 +00:00
parent 6358e05cc9
commit 7ca195f2b0

View File

@@ -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());
}
/**