avoid a null ref at shutdown

master
UbitUmarov 2020-03-01 03:22:58 +00:00
parent 49386d34e5
commit e76006aff5
1 changed files with 5 additions and 0 deletions

View File

@ -716,6 +716,11 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
#region Cache Management
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);
}