From e4bdcedbca069cb9d42c40ce6ce8054ed3ee1b58 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 8 Oct 2019 17:06:06 +0200 Subject: [PATCH] MacroProcessor::ResolveArguments(): skip null argument values refs #7558 --- lib/icinga/macroprocessor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/icinga/macroprocessor.cpp b/lib/icinga/macroprocessor.cpp index df1e41d17..c92ab19d4 100644 --- a/lib/icinga/macroprocessor.cpp +++ b/lib/icinga/macroprocessor.cpp @@ -511,6 +511,8 @@ Value MacroProcessor::ResolveArguments(const Value& command, const Dictionary::P continue; } + arg.SkipValue = arg.SkipValue || arg.AValue.GetType() == ValueEmpty; + args.emplace_back(std::move(arg)); }