* Making sure we fail a bit earlier if we have no AssetService

0.6.6-post-fixes
lbsa71 2009-06-03 17:29:21 +00:00
parent 717fd3b5b9
commit 9b619043ce
1 changed files with 7 additions and 0 deletions

View File

@ -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;
} }
} }