aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/AssetPermissions.cs
diff options
context:
space:
mode:
authorDiva Canto2012-09-21 15:04:41 -0700
committerDiva Canto2012-09-21 15:04:41 -0700
commitf931c0a86893799548d1d0f72c327c37823e4612 (patch)
treee82a8afaf36dc10c245354bc51989ca5b04b9943 /OpenSim/Framework/AssetPermissions.cs
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC-f931c0a86893799548d1d0f72c327c37823e4612.zip
opensim-SC-f931c0a86893799548d1d0f72c327c37823e4612.tar.gz
opensim-SC-f931c0a86893799548d1d0f72c327c37823e4612.tar.bz2
opensim-SC-f931c0a86893799548d1d0f72c327c37823e4612.tar.xz
Minor: may avoid crashes of sims that still don't have this configuration section.
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/AssetPermissions.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Framework/AssetPermissions.cs b/OpenSim/Framework/AssetPermissions.cs
index d276def..4a905c2 100644
--- a/OpenSim/Framework/AssetPermissions.cs
+++ b/OpenSim/Framework/AssetPermissions.cs
@@ -35,6 +35,9 @@ namespace OpenSim.Framework
35 35
36 private void LoadPermsFromConfig(IConfig assetConfig, string variable, bool[] bitArray) 36 private void LoadPermsFromConfig(IConfig assetConfig, string variable, bool[] bitArray)
37 { 37 {
38 if (assetConfig == null)
39 return;
40
38 string perms = assetConfig.GetString(variable, String.Empty); 41 string perms = assetConfig.GetString(variable, String.Empty);
39 string[] parts = perms.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); 42 string[] parts = perms.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
40 foreach (string s in parts) 43 foreach (string s in parts)