diff options
Added checks to the last commit to make sure the xml files exist before it tries to load them.
Diffstat (limited to 'OpenSim/Region/GridInterfaces/Local')
-rw-r--r-- | OpenSim/Region/GridInterfaces/Local/LocalAssetServer.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/GridInterfaces/Local/LocalAssetServer.cs b/OpenSim/Region/GridInterfaces/Local/LocalAssetServer.cs index 17d2680..eecfcaf 100644 --- a/OpenSim/Region/GridInterfaces/Local/LocalAssetServer.cs +++ b/OpenSim/Region/GridInterfaces/Local/LocalAssetServer.cs | |||
@@ -361,8 +361,11 @@ namespace OpenSim.Region.GridInterfaces.Local | |||
361 | */ | 361 | */ |
362 | 362 | ||
363 | string filePath = Path.Combine(Util.configDir(), "OpenSimAssetSet.xml"); | 363 | string filePath = Path.Combine(Util.configDir(), "OpenSimAssetSet.xml"); |
364 | if(File.Exists(filePath)) | ||
365 | { | ||
364 | XmlConfigSource source = new XmlConfigSource(filePath); | 366 | XmlConfigSource source = new XmlConfigSource(filePath); |
365 | ReadAssetDetails(source); | 367 | ReadAssetDetails(source); |
368 | } | ||
366 | } | 369 | } |
367 | 370 | ||
368 | protected void ReadAssetDetails(IConfigSource source) | 371 | protected void ReadAssetDetails(IConfigSource source) |