avoid a null ref
parent
1ffc81c869
commit
364d58635b
|
@ -268,8 +268,12 @@ namespace OpenSim.Region.DataSnapshot.Providers
|
|||
{
|
||||
XmlNode username = nodeFactory.CreateNode(XmlNodeType.Element, "name", "");
|
||||
UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, userOwnerUUID);
|
||||
if(account != null)
|
||||
username.InnerText = account.FirstName + " " + account.LastName;
|
||||
else
|
||||
username.InnerText = "UnKnown";
|
||||
userblock.AppendChild(username);
|
||||
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue