diff options
author | UbitUmarov | 2016-12-14 13:35:53 +0000 |
---|---|---|
committer | UbitUmarov | 2016-12-14 13:35:53 +0000 |
commit | 18a292ad02e590619760a71aeb1514e6916b257f (patch) | |
tree | 584faa43265cc20ee36d92b2bc14cb1c55435ef0 /OpenSim/Region/OptionalModules/DataSnapshot/LandSnapshot.cs | |
parent | Merge branch 'master' into httptests (diff) | |
parent | fix: check for region_handle before region_id, viewers are so funny.. (diff) | |
download | opensim-SC-18a292ad02e590619760a71aeb1514e6916b257f.zip opensim-SC-18a292ad02e590619760a71aeb1514e6916b257f.tar.gz opensim-SC-18a292ad02e590619760a71aeb1514e6916b257f.tar.bz2 opensim-SC-18a292ad02e590619760a71aeb1514e6916b257f.tar.xz |
Merge branch 'master' into httptests
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/OptionalModules/DataSnapshot/LandSnapshot.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/DataSnapshot/LandSnapshot.cs b/OpenSim/Region/OptionalModules/DataSnapshot/LandSnapshot.cs index 5c791e6..eb2867d 100644 --- a/OpenSim/Region/OptionalModules/DataSnapshot/LandSnapshot.cs +++ b/OpenSim/Region/OptionalModules/DataSnapshot/LandSnapshot.cs | |||
@@ -268,8 +268,12 @@ namespace OpenSim.Region.DataSnapshot.Providers | |||
268 | { | 268 | { |
269 | XmlNode username = nodeFactory.CreateNode(XmlNodeType.Element, "name", ""); | 269 | XmlNode username = nodeFactory.CreateNode(XmlNodeType.Element, "name", ""); |
270 | UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, userOwnerUUID); | 270 | UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, userOwnerUUID); |
271 | username.InnerText = account.FirstName + " " + account.LastName; | 271 | if(account != null) |
272 | username.InnerText = account.FirstName + " " + account.LastName; | ||
273 | else | ||
274 | username.InnerText = "UnKnown"; | ||
272 | userblock.AppendChild(username); | 275 | userblock.AppendChild(username); |
276 | |||
273 | } | 277 | } |
274 | catch (Exception) | 278 | catch (Exception) |
275 | { | 279 | { |