JsonRpc: don't try to connect to a empty uri

melanie
UbitUmarov 2016-12-08 23:56:14 +00:00
parent 4639409dbe
commit 18ff3eb227
1 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,9 @@ namespace OpenSim.Framework.Servers.HttpServer
if (parameters == null) if (parameters == null)
throw new ArgumentNullException("parameters"); throw new ArgumentNullException("parameters");
if(string.IsNullOrWhiteSpace(uri))
return false;
OSDMap request = new OSDMap(); OSDMap request = new OSDMap();
request.Add("jsonrpc", OSD.FromString("2.0")); request.Add("jsonrpc", OSD.FromString("2.0"));
request.Add("id", OSD.FromString(jsonId)); request.Add("id", OSD.FromString(jsonId));