mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
avoid a null ref
This commit is contained in:
@@ -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);
|
||||
username.InnerText = account.FirstName + " " + account.LastName;
|
||||
if(account != null)
|
||||
username.InnerText = account.FirstName + " " + account.LastName;
|
||||
else
|
||||
username.InnerText = "UnKnown";
|
||||
userblock.AppendChild(username);
|
||||
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user