Skip to content

Commit

Permalink
[7.x][ML] Fix rapidjson assertion failures (#1670) (#1671)
Browse files Browse the repository at this point in the history
Fix assertion failures shown up in debug builds of test cases.

Relates #1253 
Backports #1670
  • Loading branch information
edsavage authored Jan 15, 2021
1 parent 3bc3e3a commit a58ad4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/api/CAnomalyJobConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ bool CAnomalyJobConfig::parseEventConfig(const std::string& json) {
return false;
}

if (doc.Empty()) {
if (doc.ObjectEmpty()) {
return true;
}

Expand Down Expand Up @@ -496,7 +496,7 @@ bool CAnomalyJobConfig::parseFilterConfig(const std::string& json) {
return false;
}

if (doc.Empty()) {
if (doc.ObjectEmpty()) {
return true;
}

Expand Down

0 comments on commit a58ad4c

Please sign in to comment.