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.

0.8.1-post-fixes
AliciaRaven 2015-02-01 15:05:56 +00:00 committed by Diva Canto
parent b8c7175d34
commit 14a3375bed
1 changed files with 1 additions and 1 deletions

View File

@ -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++)
{