mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix a JSON buglet.
This commit is contained in:
@@ -973,6 +973,7 @@ std::auto_ptr<STObject> STObject::parseJson(const Json::Value& object, SField::r
|
||||
|
||||
case STI_VL:
|
||||
if (!value.isString())
|
||||
throw std::runtime_error("Incorrect type");
|
||||
data.push_back(new STVariableLength(field, strUnHex(value.asString())));
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user