aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorlbsa712009-06-03 17:29:21 +0000
committerlbsa712009-06-03 17:29:21 +0000
commit9b619043ce6c8b513f3e784594b9f7fac58e0429 (patch)
tree59936c01f60b401d3e4da59d74b6e6b85e344012 /OpenSim/Region
parentFrom: Chris Yeoh <yeohc@au1.ibm.com> (diff)
downloadopensim-SC_OLD-9b619043ce6c8b513f3e784594b9f7fac58e0429.zip
opensim-SC_OLD-9b619043ce6c8b513f3e784594b9f7fac58e0429.tar.gz
opensim-SC_OLD-9b619043ce6c8b513f3e784594b9f7fac58e0429.tar.bz2
opensim-SC_OLD-9b619043ce6c8b513f3e784594b9f7fac58e0429.tar.xz
* Making sure we fail a bit earlier if we have no AssetService
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 6a3746c..9cfc84f 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -133,8 +133,15 @@ namespace OpenSim.Region.Framework.Scenes
133 get 133 get
134 { 134 {
135 if (m_AssetService == null) 135 if (m_AssetService == null)
136 {
136 m_AssetService = RequestModuleInterface<IAssetService>(); 137 m_AssetService = RequestModuleInterface<IAssetService>();
137 138
139 if( m_AssetService == null )
140 {
141 throw new Exception("No IAssetService available.");
142 }
143 }
144
138 return m_AssetService; 145 return m_AssetService;
139 } 146 }
140 } 147 }