mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
add a null check in ScenePresence constructor
This commit is contained in:
@@ -676,7 +676,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, m_uuid);
|
||||
|
||||
m_userLevel = account.UserLevel;
|
||||
if (account != null)
|
||||
m_userLevel = account.UserLevel;
|
||||
|
||||
IGroupsModule gm = m_scene.RequestModuleInterface<IGroupsModule>();
|
||||
if (gm != null)
|
||||
|
||||
Reference in New Issue
Block a user