mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
Fix RapidJSON error asserting in configuration (#4086)
This commit is contained in:
parent
6f20eced93
commit
3f7dda4475
@ -649,7 +649,7 @@ void Config::applyParsers(const std::string& source,
|
||||
// For each key requested by the parser, add a property tree reference.
|
||||
std::map<std::string, JSON> parser_config;
|
||||
for (const auto& key : parser->keys()) {
|
||||
if (obj.HasMember(key)) {
|
||||
if (obj.HasMember(key) && !obj[key].IsNull()) {
|
||||
auto doc = JSON::newFromValue(obj[key]);
|
||||
parser_config.emplace(std::make_pair(key, std::move(doc)));
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user