Browse Source

required safeguard

pEp4Thunderbird
Volker Birk 2 years ago
parent
commit
944636a0bb
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      server/function_map.hh

+ 2
- 1
server/function_map.hh View File

@ -128,8 +128,9 @@ public:
// std::cerr << "|$ Param #" << U << " is not for output.\n";
}
#ifdef _MSC_BUILD
if (ret.type() == js::array_type) {
if (ret.type() == js::array_type && !ret.get_array().empty()) {
try {
const js::Array ret_ = ret.get_array()[0].get_array();
#ifndef NDEBUG
std::string _ret_ = js::write(ret_);


Loading…
Cancel
Save