diff --git a/src/xrpld/rpc/handlers/AccountInfo.cpp b/src/xrpld/rpc/handlers/AccountInfo.cpp index d8ab90cb9b..9a6a23ad55 100644 --- a/src/xrpld/rpc/handlers/AccountInfo.cpp +++ b/src/xrpld/rpc/handlers/AccountInfo.cpp @@ -160,6 +160,10 @@ doAccountInfo(RPC::JsonContext& context) { // Remove the ID suffix from the field name. name = name.substr(0, name.size() - 2); + XRPL_ASSERT_PARTS( + !name.empty(), + "ripple::doAccountInfo", + "name is not empty") } // ValidPseudoAccounts invariant guarantees that only one field // can be set