mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 19:10:20 +01:00
Fix nullptr deref in Poco::JSON::Object (#2150)
This commit is contained in:
committed by
Alex Fabijanic
parent
d9bff00222
commit
bdd0478ead
@@ -643,6 +643,9 @@ void JSONTest::testObjectProperty()
|
||||
assert (object->isObject("test"));
|
||||
assert (!object->isArray("test"));
|
||||
|
||||
assert (!object->isArray("nonExistentKey"));
|
||||
assert (!object->isObject("nonExistentKey"));
|
||||
|
||||
Var test = object->get("test");
|
||||
assert (test.type() == typeid(Object::Ptr));
|
||||
Object::Ptr subObject = test.extract<Object::Ptr>();
|
||||
|
||||
Reference in New Issue
Block a user