aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Configuration/XML
diff options
context:
space:
mode:
authorMelanie Thielker2008-10-03 02:21:12 +0000
committerMelanie Thielker2008-10-03 02:21:12 +0000
commit189c3e5a824c8e418cebf14332c7d1e8544c1f28 (patch)
treeb56396fdfe8b01898f484eb1e491b8c53a0500fc /OpenSim/Framework/Configuration/XML
parentMantis #2317 (diff)
downloadopensim-SC_OLD-189c3e5a824c8e418cebf14332c7d1e8544c1f28.zip
opensim-SC_OLD-189c3e5a824c8e418cebf14332c7d1e8544c1f28.tar.gz
opensim-SC_OLD-189c3e5a824c8e418cebf14332c7d1e8544c1f28.tar.bz2
opensim-SC_OLD-189c3e5a824c8e418cebf14332c7d1e8544c1f28.tar.xz
Prevent an exception when the directory given for XML save is read only
and region config is loaded from the web
Diffstat (limited to 'OpenSim/Framework/Configuration/XML')
-rw-r--r--OpenSim/Framework/Configuration/XML/XmlConfiguration.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Framework/Configuration/XML/XmlConfiguration.cs b/OpenSim/Framework/Configuration/XML/XmlConfiguration.cs
index 89f52cf..3914d2e 100644
--- a/OpenSim/Framework/Configuration/XML/XmlConfiguration.cs
+++ b/OpenSim/Framework/Configuration/XML/XmlConfiguration.cs
@@ -121,6 +121,9 @@ namespace OpenSim.Framework.Configuration.XML
121 121
122 public void Commit() 122 public void Commit()
123 { 123 {
124 if (fileName == null)
125 return;
126
124 if (!Directory.Exists(Util.configDir())) 127 if (!Directory.Exists(Util.configDir()))
125 { 128 {
126 Directory.CreateDirectory(Util.configDir()); 129 Directory.CreateDirectory(Util.configDir());