aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs5
1 files changed, 4 insertions, 1 deletions
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
773 m_localId = m_scene.AllocateLocalId(); 773 m_localId = m_scene.AllocateLocalId();
774 774
775 UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, m_uuid); 775 UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, m_uuid);
776 m_userFlags = account.UserFlags; 776 if (account != null)
777 m_userFlags = account.UserFlags;
778 else
779 m_userFlags = 0;
777 780
778 if (account != null) 781 if (account != null)
779 UserLevel = account.UserLevel; 782 UserLevel = account.UserLevel;