From 0bf757e42bf161af8a266142dde530034bfdb3fa Mon Sep 17 00:00:00 2001 From: Melanie Date: Sun, 6 Nov 2011 20:00:03 +0000 Subject: Allow HG and other scene presences not linked to a user account to function. --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 6fbc410..99be46d 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -773,7 +773,10 @@ namespace OpenSim.Region.Framework.Scenes m_localId = m_scene.AllocateLocalId(); UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, m_uuid); - m_userFlags = account.UserFlags; + if (account != null) + m_userFlags = account.UserFlags; + else + m_userFlags = 0; if (account != null) UserLevel = account.UserLevel; -- cgit v1.1