* Making sure we fail a bit earlier if we have no AssetService
parent
717fd3b5b9
commit
9b619043ce
|
@ -133,8 +133,15 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (m_AssetService == null)
|
if (m_AssetService == null)
|
||||||
|
{
|
||||||
m_AssetService = RequestModuleInterface<IAssetService>();
|
m_AssetService = RequestModuleInterface<IAssetService>();
|
||||||
|
|
||||||
|
if( m_AssetService == null )
|
||||||
|
{
|
||||||
|
throw new Exception("No IAssetService available.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return m_AssetService;
|
return m_AssetService;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue