diff --git a/server/WebApi.h b/server/WebApi.h index 79fea18f..9830dfd4 100755 --- a/server/WebApi.h +++ b/server/WebApi.h @@ -89,11 +89,11 @@ std::string getValue(Args &args, const Key &key) { template std::string getValue(Json::Value &args, const Key &key) { - auto it = args.find(key); - if (it == args.end()) { + auto value = args.find(key); + if (value == nullptr) { return ""; } - return it->second.asString(); + return value->asString(); } template