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.
parent
87936947ab
commit
bee3933e57
|
@ -395,7 +395,7 @@ namespace OpenSim.Region.DataSnapshot
|
|||
string delimStr = ";";
|
||||
char [] delimiter = delimStr.ToCharArray();
|
||||
|
||||
string[] services = servicesStr.Split(delimiter);
|
||||
string[] services = servicesStr.Split(delimiter, StringSplitOptions.RemoveEmptyEntries);
|
||||
|
||||
for (int i = 0; i < services.Length; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue