diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index 0e24c139a..ee1dffefe 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -627,7 +627,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[]) tinyxml2::XMLElement *summary = message->FirstChildElement("summary"); if (summary) - rule.summary = summary->GetText(); + rule.summary = summary->GetText() ? summary->GetText() : ""; } if (!rule.pattern.empty())