Prevent an exception when the directory given for XML save is read only

and region config is loaded from the web
0.6.0-stable
Melanie Thielker 2008-10-03 02:21:12 +00:00
parent e30856a32f
commit 189c3e5a82
1 changed files with 3 additions and 0 deletions

View File

@ -121,6 +121,9 @@ namespace OpenSim.Framework.Configuration.XML
public void Commit()
{
if (fileName == null)
return;
if (!Directory.Exists(Util.configDir()))
{
Directory.CreateDirectory(Util.configDir());