Prevent an exception when the directory given for XML save is read only
and region config is loaded from the web0.6.0-stable
parent
e30856a32f
commit
189c3e5a82
|
@ -121,6 +121,9 @@ namespace OpenSim.Framework.Configuration.XML
|
||||||
|
|
||||||
public void Commit()
|
public void Commit()
|
||||||
{
|
{
|
||||||
|
if (fileName == null)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!Directory.Exists(Util.configDir()))
|
if (!Directory.Exists(Util.configDir()))
|
||||||
{
|
{
|
||||||
Directory.CreateDirectory(Util.configDir());
|
Directory.CreateDirectory(Util.configDir());
|
||||||
|
|
Loading…
Reference in New Issue