From 9596fb4c7804acf3b292887bbf9cfab659e63363 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Wed, 20 Jan 2016 13:15:03 +0200 Subject: [PATCH] Check account existence --- modules/remotebackend/httpconnector.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/remotebackend/httpconnector.cc b/modules/remotebackend/httpconnector.cc index 5ae2b2704b..9a8fdea1d2 100644 --- a/modules/remotebackend/httpconnector.cc +++ b/modules/remotebackend/httpconnector.cc @@ -130,7 +130,7 @@ void HTTPConnector::restful_requestbuilder(const std::string &method, const Json } else if (method == "createSlaveDomain") { addUrlComponent(parameters, "ip", ss); addUrlComponent(parameters, "domain", ss); - if (parameters["account"].is_string()) { + if (parameters["account"].is_null() == false && parameters["account"].is_string()) { req.POST()["account"] = parameters["account"].string_value(); } req.preparePost(); -- 2.47.2