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

This commit is contained in:
UbitUmarov
2016-12-08 23:56:14 +00:00
parent 4639409dbe
commit 18ff3eb227

View File

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