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