diff --git a/src/ripple/json/impl/json_value.cpp b/src/ripple/json/impl/json_value.cpp index 227511ee1..27c0aae7c 100644 --- a/src/ripple/json/impl/json_value.cpp +++ b/src/ripple/json/impl/json_value.cpp @@ -1002,6 +1002,9 @@ Value::removeMember ( std::string const& key ) bool Value::isMember ( const char* key ) const { + if (type_ != objectValue) + return false; + const Value* value = & ((*this)[key]); return value != &null; }