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.

inv-download
AliciaRaven 2015-02-01 15:05:56 +00:00 committed by Diva Canto
parent 87936947ab
commit bee3933e57
1 changed files with 1 additions and 1 deletions

View File

@ -395,7 +395,7 @@ namespace OpenSim.Region.DataSnapshot
string delimStr = ";"; string delimStr = ";";
char [] delimiter = delimStr.ToCharArray(); char [] delimiter = delimStr.ToCharArray();
string[] services = servicesStr.Split(delimiter); string[] services = servicesStr.Split(delimiter, StringSplitOptions.RemoveEmptyEntries);
for (int i = 0; i < services.Length; i++) for (int i = 0; i < services.Length; i++)
{ {