aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index 3c51aa6..19f0f9c 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -510,8 +510,9 @@ namespace OpenSim.Region.Environment.Scenes
510 RegisterToEvents(); 510 RegisterToEvents();
511 SetDirectionVectors(); 511 SetDirectionVectors();
512 512
513 CachedUserInfo userInfo = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(m_uuid); 513 CachedUserInfo userInfo = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(m_uuid);
514 userInfo.OnItemReceived += ItemReceived; 514 if (userInfo != null)
515 userInfo.OnItemReceived += ItemReceived;
515 } 516 }
516 517
517 public ScenePresence(IClientAPI client, Scene world, RegionInfo reginfo, byte[] visualParams, 518 public ScenePresence(IClientAPI client, Scene world, RegionInfo reginfo, byte[] visualParams,