From 18ff3eb2271ed2f58da35a83835b5d679a9ce33b Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 8 Dec 2016 23:56:14 +0000 Subject: [PATCH] JsonRpc: don't try to connect to a empty uri --- OpenSim/Framework/Servers/HttpServer/JsonRpcRequestManager.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenSim/Framework/Servers/HttpServer/JsonRpcRequestManager.cs b/OpenSim/Framework/Servers/HttpServer/JsonRpcRequestManager.cs index 2fe1a7d8bc..f3faf4f6d4 100644 --- a/OpenSim/Framework/Servers/HttpServer/JsonRpcRequestManager.cs +++ b/OpenSim/Framework/Servers/HttpServer/JsonRpcRequestManager.cs @@ -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));