diff options
author | UbitUmarov | 2016-12-14 03:02:57 +0000 |
---|---|---|
committer | UbitUmarov | 2016-12-14 03:02:57 +0000 |
commit | 364d58635ba4479d4eb267a4b021cc2be211bbde (patch) | |
tree | d18aedbc9167f41fb02eee7e833164f62c765b0d /OpenSim/Region/OptionalModules/DataSnapshot | |
parent | also reduce check threat level of osNpcSetProfileAbout to Low; update osslEn... (diff) | |
download | opensim-SC_OLD-364d58635ba4479d4eb267a4b021cc2be211bbde.zip opensim-SC_OLD-364d58635ba4479d4eb267a4b021cc2be211bbde.tar.gz opensim-SC_OLD-364d58635ba4479d4eb267a4b021cc2be211bbde.tar.bz2 opensim-SC_OLD-364d58635ba4479d4eb267a4b021cc2be211bbde.tar.xz |
avoid a null ref
Diffstat (limited to 'OpenSim/Region/OptionalModules/DataSnapshot')
-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 | { |