Added checks to the last commit to make sure the xml files exist before it tries to load them.

afrisby
MW 2007-08-08 17:29:37 +00:00
parent cf203cf5ee
commit 369fb2e623
2 changed files with 8 additions and 2 deletions

View File

@ -36,9 +36,12 @@ namespace OpenSim.Framework.Communications.Caches
this.CreateLibraryItems();
string filePath = Path.Combine(Util.configDir(), "OpenSimLibrary.xml");
if (File.Exists(filePath))
{
XmlConfigSource source = new XmlConfigSource(filePath);
this.ReadItemsFromFile(source);
}
}
private void CreateLibraryItems()
{

View File

@ -361,9 +361,12 @@ namespace OpenSim.Region.GridInterfaces.Local
*/
string filePath = Path.Combine(Util.configDir(), "OpenSimAssetSet.xml");
if(File.Exists(filePath))
{
XmlConfigSource source = new XmlConfigSource(filePath);
ReadAssetDetails(source);
}
}
protected void ReadAssetDetails(IConfigSource source)
{