diff options
author | Melanie Thielker | 2008-10-03 02:21:12 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-10-03 02:21:12 +0000 |
commit | 189c3e5a824c8e418cebf14332c7d1e8544c1f28 (patch) | |
tree | b56396fdfe8b01898f484eb1e491b8c53a0500fc /OpenSim | |
parent | Mantis #2317 (diff) | |
download | opensim-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')
-rw-r--r-- | OpenSim/Framework/Configuration/XML/XmlConfiguration.cs | 3 |
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()); |