diff options
author | lbsa71 | 2009-06-03 17:29:21 +0000 |
---|---|---|
committer | lbsa71 | 2009-06-03 17:29:21 +0000 |
commit | 9b619043ce6c8b513f3e784594b9f7fac58e0429 (patch) | |
tree | 59936c01f60b401d3e4da59d74b6e6b85e344012 /OpenSim/Region/Framework | |
parent | From: Chris Yeoh <yeohc@au1.ibm.com> (diff) | |
download | opensim-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/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 7 |
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 | } |