mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Fixed unit tests for Load OAR
This commit is contained in:
@@ -556,7 +556,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
if (m_EstateDataService == null)
|
||||
{
|
||||
m_EstateDataService = RequestModuleInterface<IEstateDataService>();
|
||||
m_EstateDataService = EstateDataServiceSafe;
|
||||
|
||||
if (m_EstateDataService == null)
|
||||
{
|
||||
@@ -568,6 +568,22 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Similar to 'EstateDataService', but if the service isn't found returns null instead of throwing an exception.
|
||||
/// </summary>
|
||||
public IEstateDataService EstateDataServiceSafe
|
||||
{
|
||||
get
|
||||
{
|
||||
if (m_EstateDataService == null)
|
||||
{
|
||||
m_EstateDataService = RequestModuleInterface<IEstateDataService>();
|
||||
}
|
||||
|
||||
return m_EstateDataService;
|
||||
}
|
||||
}
|
||||
|
||||
public IAssetService AssetService
|
||||
{
|
||||
get
|
||||
|
||||
Reference in New Issue
Block a user