avoid a null ref at shutdown
parent
49386d34e5
commit
e76006aff5
|
@ -716,6 +716,11 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
|
||||||
#region Cache Management
|
#region Cache Management
|
||||||
public virtual bool GetUser(UUID uuid, out UserData userdata)
|
public virtual bool GetUser(UUID uuid, out UserData userdata)
|
||||||
{
|
{
|
||||||
|
if (m_Scenes.Count <= 0)
|
||||||
|
{
|
||||||
|
userdata = new UserData();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return GetUser(uuid, m_Scenes[0].RegionInfo.ScopeID, out userdata);
|
return GetUser(uuid, m_Scenes[0].RegionInfo.ScopeID, out userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue