Fix unit test.

This commit is contained in:
Diva Canto
2010-11-29 09:57:41 -08:00
parent f86c438653
commit 49b59fffee
4 changed files with 22 additions and 9 deletions

View File

@@ -57,6 +57,12 @@ namespace OpenSim.Framework.Serialization
/// <returns>The OSPA. Null if a user with the given UUID could not be found.</returns>
public static string MakeOspa(UUID userId, IUserAccountService userService)
{
if (userService == null)
{
m_log.Warn("[OSP RESOLVER]: UserService is null");
return userId.ToString();
}
UserAccount account = userService.GetUserAccount(UUID.Zero, userId);
if (account != null)
return MakeOspa(account.FirstName, account.LastName);