diff options
author | UbitUmarov | 2016-12-08 23:56:14 +0000 |
---|---|---|
committer | UbitUmarov | 2016-12-08 23:56:14 +0000 |
commit | 18ff3eb2271ed2f58da35a83835b5d679a9ce33b (patch) | |
tree | 3515dc7a84cd970b9af5826120ca4c049d1ec3df /OpenSim | |
parent | change caps Sethome fail error report (diff) | |
download | opensim-SC-18ff3eb2271ed2f58da35a83835b5d679a9ce33b.zip opensim-SC-18ff3eb2271ed2f58da35a83835b5d679a9ce33b.tar.gz opensim-SC-18ff3eb2271ed2f58da35a83835b5d679a9ce33b.tar.bz2 opensim-SC-18ff3eb2271ed2f58da35a83835b5d679a9ce33b.tar.xz |
JsonRpc: don't try to connect to a empty uri
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/JsonRpcRequestManager.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/JsonRpcRequestManager.cs b/OpenSim/Framework/Servers/HttpServer/JsonRpcRequestManager.cs index 2fe1a7d..f3faf4f 100644 --- a/OpenSim/Framework/Servers/HttpServer/JsonRpcRequestManager.cs +++ b/OpenSim/Framework/Servers/HttpServer/JsonRpcRequestManager.cs | |||
@@ -77,6 +77,9 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
77 | if (parameters == null) | 77 | if (parameters == null) |
78 | throw new ArgumentNullException("parameters"); | 78 | throw new ArgumentNullException("parameters"); |
79 | 79 | ||
80 | if(string.IsNullOrWhiteSpace(uri)) | ||
81 | return false; | ||
82 | |||
80 | OSDMap request = new OSDMap(); | 83 | OSDMap request = new OSDMap(); |
81 | request.Add("jsonrpc", OSD.FromString("2.0")); | 84 | request.Add("jsonrpc", OSD.FromString("2.0")); |
82 | request.Add("id", OSD.FromString(jsonId)); | 85 | request.Add("id", OSD.FromString(jsonId)); |