mirror of https://github.com/Icinga/icinga2.git
Fix crash in MacroProcessor::ResolveMacros.
This commit is contained in:
parent
7f9fdde77e
commit
4b6d8943fa
|
@ -34,6 +34,9 @@ Value MacroProcessor::ResolveMacros(const Value& str, const std::vector<MacroRes
|
|||
{
|
||||
Value result;
|
||||
|
||||
if (str.IsEmpty())
|
||||
return Empty;
|
||||
|
||||
if (str.IsScalar()) {
|
||||
result = InternalResolveMacros(str, resolvers, cr, escapeFn, escapeMacros);
|
||||
} else if (str.IsObjectType<Array>()) {
|
||||
|
|
Loading…
Reference in New Issue