aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAliciaRaven2015-02-01 15:05:56 +0000
committerDiva Canto2015-02-01 10:33:37 -0800
commit14a3375bed6ebbcf2b456526e4a079279764ad0f (patch)
tree4bbe2b5fa9c81bedd108d61a5923916d76744271
parentChange flavour to RC1 (diff)
downloadopensim-SC_OLD-14a3375bed6ebbcf2b456526e4a079279764ad0f.zip
opensim-SC_OLD-14a3375bed6ebbcf2b456526e4a079279764ad0f.tar.gz
opensim-SC_OLD-14a3375bed6ebbcf2b456526e4a079279764ad0f.tar.bz2
opensim-SC_OLD-14a3375bed6ebbcf2b456526e4a079279764ad0f.tar.xz
Prevent null entries being treated as URI's when DataSnapshot service splits service string. The new config format for services to notify in the DataSnapshot module appends entries to the existing single string and always leaves a deliminator on the end of the string. This is causing it to split with a null string in the resulting array, which is treated as another service to notify and throws a URI format exception on start up.
-rw-r--r--OpenSim/Region/DataSnapshot/DataSnapshotManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs b/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs
index f7b2338..600e826 100644
--- a/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs
+++ b/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs
@@ -395,7 +395,7 @@ namespace OpenSim.Region.DataSnapshot
395 string delimStr = ";"; 395 string delimStr = ";";
396 char [] delimiter = delimStr.ToCharArray(); 396 char [] delimiter = delimStr.ToCharArray();
397 397
398 string[] services = servicesStr.Split(delimiter); 398 string[] services = servicesStr.Split(delimiter, StringSplitOptions.RemoveEmptyEntries);
399 399
400 for (int i = 0; i < services.Length; i++) 400 for (int i = 0; i < services.Length; i++)
401 { 401 {