diff --git a/src/ripple/rpc/impl/Handler.cpp b/src/ripple/rpc/impl/Handler.cpp index 535757c51a..58f2fae8d6 100644 --- a/src/ripple/rpc/impl/Handler.cpp +++ b/src/ripple/rpc/impl/Handler.cpp @@ -32,6 +32,12 @@ Handler::Method byRef (Function const& f) return [f] (Context& context, Json::Value& result) { result = f (context); + if (result.type() != Json::objectValue) + { + assert (false); + result = RPC::makeObjectValue (result); + } + return Status(); }; }