add a null check in ScenePresence constructor

slimupdates
dahlia 2010-03-13 12:04:49 -08:00
parent 41a98b902b
commit 2ebc4be99d
1 changed files with 2 additions and 1 deletions

View File

@ -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)